getCRS {enmSdmX} | R Documentation |
WKT string for a named coordinate reference system or a spatial object
Description
Retrieve the Well-Known text string (WKT2) for a coordinate reference system (CRS) by name or from a spatial object. The most common usage of the function is to return the WKT2 string using an easy-to-remember name. For example, getCRS('wgs84')
returns the WKT2 string for the WGS84 datum. To get a table of strings, just use getCRS()
.
Usage
getCRS(x = NULL, nice = FALSE, warn = TRUE)
Arguments
x |
This can be any of:
|
nice |
If |
warn |
If |
Value
A string representing WKT2 (well-known text) object or a data.frame
.
Examples
# view table of available CRSs
getCRS()
# get specific WKT2 strings
getCRS('WGS84')
getCRS('Mollweide')
getCRS('WorldClim')
# WKT2 strings nice for your eyes
getCRS('WGS84', TRUE)
data(mad0)
getCRS(mad0)