View source: R/code_to_getCoordinateReferenceSystemInfo.R
get_spCRS | R Documentation |
Function to get coordinate reference system representation as a sp::CRS object
get_spCRS(x)
x |
|
x
can be NULL, NA, numeric, character,
inherit from sf classes crs, sf, sfc, or sfg, or
inherit from sp classes CRS or Spatial.
If x
is numeric, it should represent an EPSG code.
If x
is character, it should be a valid PROJ4 string or one of the following:
"longlat","latlong","WGS84","NAD83","NAD27", "AlaskaAlbers", "utmXX" or "utmXXs". In the
latter two cases, XX should be a valid utm zone.
Based on deprecated function tmaptools::get_proj4
by M. Tennekes
(see https://github.com/mtennekes/oldtmaptools/blob/master/R/get_proj4_code.R).
a sp::CRS object or NULL if x
is NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.