Learn R Programming

crsmeta (version 0.3.0)

crs_wkt2: Extract 'WKT2' string

Description

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

Usage

crs_wkt2(x, ...)

crs_wkt(x, ...)

Arguments

x

object with 'WKT2' string

...

ignored

Value

character string (or NA)

Warning

For WKT2 only, PROJ6 and beyond

Details

The functions crs_wkt() and crs_wkt2() are aliased, they do the same thing.

References

WKT2 specification

See Also

crs_epsg() crs_proj() crs_wkt() crs_input()

Examples

Run this code
# NOT RUN {
crs_wkt2(sfx) # NA
crs_wkt2(sfx$geom) # NA

crs_wkt2(sfx_new)
crs_wkt2(sfx_new$geom)
# }

Run the code above in your browser using DataLab