getCRS | R Documentation |
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()
.
getCRS(x = NULL, nice = FALSE, warn = TRUE)
x |
This can be any of:
|
nice |
If |
warn |
If |
A string representing WKT2 (well-known text) object or a data.frame
.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.