crs_epsg: Extract 'EPSG' value

Description Usage Arguments Value References See Also Examples

View source: R/get_crs.R

Description

Obtain the 'EPSG' string from an object, if it has one. Supported inputs include sf.

Usage

1

Arguments

x

object with 'EPSG' value

...

ignored

Value

integer (or NA)

References

EPSG website

See Also

crs_wkt2() crs_proj() crs_input()

Examples

1
2
3
4
5
6
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

crsmeta documentation built on April 14, 2020, 7:13 p.m.