[Rspatial-devel] CRS("+proj=longlat +datum=wgs84")
Roger Bivand
Roger.Bivand at nhh.no
Mon Mar 9 10:41:29 CET 2015
On Mon, 9 Mar 2015, Edzer Pebesma wrote:
> 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?
Yes, but note that I'm making changes in rgdal to accommodate forthcoming
PROJ 4.9.1. However, lower case wgs84 has never been OK, right?
Roger
>
--
Roger Bivand
Department of Economics, Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 91 00
e-mail: Roger.Bivand at nhh.no
More information about the Rspatial-devel
mailing list