[GRASS-stats] WinGRASS/rgrass7/rgdal issue

Roger Bivand Roger.Bivand at nhh.no
Sun Apr 11 07:48:43 PDT 2021


The issue raised at https://github.com/rsbivand/rgrass7/issues/27 is 
difficult to address. On Windows, using the latest CRAN binary rgdal and 
rgrass7 for reading the WinGRASS 7.8.5 location projection, g.proj looks 
at PROJ_LIB, which is that defined when rgdal was loaded.

The CRAN Windows binary rgdal package was built with the PROJ version 
bundling EPSG 10.008, but WinGRASS 7.8.5 has EPSG 9.8.6. Because the 
tables and field names changed EPSG 9 -> 10, WinGRASS g.proj fails to read 
PROJ proj.db.

If you see this, remotes::install.github("rsbivand/rgrass7") will help, 
but it does not resolve the problem of RGDAL overwriting the PROJ_LIB 
environment variable.

Attempts will continue to find ways to leave the environment variable used 
by g.proj alone in rgdal, as this ESPG 9/10 incompatibility will affect 
interactions between builds of rgdal binaries used with other software 
built using proj.db based on EPSG on the "other" side of the 
incomatibility.

Roger

-- 
Roger Bivand
Emeritus Professor
Department of Economics, Norwegian School of Economics,
Postboks 3490 Ytre Sandviken, 5045 Bergen, Norway.
e-mail: Roger.Bivand at nhh.no
https://orcid.org/0000-0003-2392-6140
https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en


More information about the grass-stats mailing list