[Rspatial-devel] CRS("+proj=longlat +datum=wgs84")
Edzer Pebesma
edzer.pebesma at uni-muenster.de
Mon Mar 9 10:33:02 CET 2015
up to now, CRS("+proj=longlat +datum=wgs84") would be accepted when sp
is loaded, but rgdal is not. I modified this into quietly checking
whether rgdal is available:
rgdal::checkCRSArgs used to be checked only when
if (!is.na(uprojargs) && "rgdal" %in% .packages()) {
I changed this into:
if (!is.na(uprojargs) && requireNamespace("rgdal", quietly = TRUE)) {
which leads to the following behaviour with only sp loaded:
> CRS("+proj=longlat +datum=wgs84")
Error in CRS("+proj=longlat +datum=wgs84") :
unknown elliptical parameter name
I think this is good, although it currently breaks packages HSAUR3 and
MapGAM. Shall I contact its authors?
--
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster,
Heisenbergstraße 2, 48149 Münster, Germany; +49 251 83 33081
Journal of Statistical Software: http://www.jstatsoft.org/
Computers & Geosciences: http://elsevier.com/locate/cageo/
Spatial Statistics Society http://www.spatialstatistics.info
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.r-forge.r-project.org/pipermail/rspatial-devel/attachments/20150309/bfc6f6b4/attachment.sig>
More information about the Rspatial-devel
mailing list