powered by
Obtain the 'EPSG' string from an object, if it has one. Supported inputs include sf.
crs_epsg(x, ...)
object with 'EPSG' value
ignored
integer (or NA)
EPSG website
crs_wkt2() crs_proj() crs_input()
crs_wkt2()
crs_proj()
crs_input()
# NOT RUN { 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 # }
Run the code above in your browser using DataLab