crs_wkt2 {crsmeta}R Documentation

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

Details

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

Value

character string (or NA)

Warning

For WKT2 only, PROJ6 and beyond

References

WKT2 specification

See Also

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

Examples

crs_wkt2(sfx) # NA
crs_wkt2(sfx$geom) # NA

crs_wkt2(sfx_new)
crs_wkt2(sfx_new$geom)

[Package crsmeta version 0.3.0 Index]