crsMerc {mapmisc} | R Documentation |
Defines CRS's for the Spherical Mercator and long-lat projections.
crsMerc crsLL
CRS objects for epsg:4326 (long-lat) and the spherical Mercator projection used by web mapping services.
Using epsg codes requires the rgdal
package to be installed, and
crsLL
is intended as a replacement for CRS("+init=epsg:4326")
when
rgdal
is not guaranteed to be available.
Objects of class CRS
.
https://en.wikipedia.org/wiki/Web_Mercator, https://spatialreference.org/ref/epsg/4326/
crsMerc if(require('rgdal', quietly=TRUE)) CRS("+init=epsg:3857") crsLL if(require('rgdal', quietly=TRUE)) { CRS("+init=epsg:4326") rgdal::showEPSG("+proj=longlat") rgdal::showEPSG(as.character(crsLL)) }