Extract CRS information
Wrapper for CRS(projargs) (PROJ4) and CRS(wkt) for
sp::Spatial
objects.
fm_sp_get_crs(x)
x |
A |
This function is a convenience method to workaround PROJ4/PROJ6 differences, and the lack of a crs extraction method for Spatial objects.
A CRS
object, or NULL if no valid CRS identified
Finn Lindgren finn.lindgren@gmail.com
## Not run: if (interactive()) { s <- sp::SpatialPoints(matrix(1:6, 3, 2), proj4string = fm_CRS("sphere")) fm_sp_get_crs(s) } ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.