Get the coordinate reference system of a spatial object.
Get the coordinate reference system of a spatial object.
getCRS(x, ...) ## S4 method for signature 'ANY' getCRS(x) ## S4 method for signature 'geom' getCRS(x) ## S4 method for signature 'Spatial' getCRS(x) ## S4 method for signature 'sf' getCRS(x) ## S4 method for signature 'Raster' getCRS(x)
x |
the object from which to extract the coordinate reference system. |
... |
other arguments. |
The coordinate reference system of x given as proj4string.
getCRS(x = gtGeoms$grid$continuous)
library(sf)
nc_sf <- st_read(system.file("shape/nc.shp", package="sf"), quiet = TRUE)
getCRS(nc_sf)
getCRS(x = gtRasters$categorical)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.