Last chance! 50% off unlimited learning
Sale ends in
CRS(projargs)
identicalCRS(x,y)
as.character(NA)
, it may be missing or an empty string of zero length and will then set to they
is missing, list with objects that have a proj4string
methodCRS
returns on success an object of class
CRS. identicalCRS
returns a logical, indicating
whether x
and y
have identical CRS, or if y
is missing whether all objects in list x
have identical CRS.CRS("projargs")
, where "projargs" is a valid string of PROJ.4 arguments. The initiation function calls the PROJ.4 library to verify the argument set against those known in the library, returning error messages where necessary. The function CRSargs()
can be used to show the expanded argument list used by the PROJ.4 library.CRS()
CRS("")
CRS(as.character(NA))
CRS("+proj=longlat +datum=WGS84")
if (require(rgdal)) {
print(CRSargs(CRS("+proj=longlat +datum=NAD27")))
print(CRSargs(CRS("+init=epsg:4267")))
print(CRSargs(CRS("+init=epsg:26978")))
print(CRSargs(CRS(paste("+proj=sterea +lat_0=52.15616055555555",
"+lon_0=5.38763888888889 +k=0.999908 +x_0=155000 +y_0=463000 +ellps=bessel",
"+towgs84=565.237,50.0087,465.658,-0.406857,0.350733,-1.87035,4.0812 +units=m"))))
print(CRSargs(CRS("+init=epsg:28992")))
}
# see http://trac.osgeo.org/gdal/ticket/1987
Run the code above in your browser using DataLab