crs_epsg {crsmeta} | R Documentation |
Obtain the 'EPSG' string from an object, if it has one. Supported inputs include sf.
crs_epsg(x, ...)
x |
object with 'EPSG' value |
... |
ignored |
integer (or NA)
crs_wkt2()
crs_proj()
crs_input()
crs_epsg(sfx)
x <- sfx
attr(x$geom, "crs")$epsg <- NA ## oh no we lost it
crs_epsg(x)
crs_epsg(sfx_new) ## NA, doesn't exist now