[R-sig-Geo] no proj_defs.dat file in PROJ.4 files message when using rgdal

Roger Bivand Roger.Bivand at nhh.no
Fri Aug 12 16:14:53 CEST 2016


On Fri, 12 Aug 2016, Wall, Wade A ERDC-RDE-CERL-IL CIV wrote:

> Hi all,
>
> I am using R on a high performance Linux cluster and had to build gdal, 
> proj4 (version 4.9.2), and rgdal from source. I had to install proj.4 in 
> a non-standard location (/p/bin/proj4) and this appears to be causing 
> some problems.
>
> I modified my $PATH variable to include /p/bin/proj4; 
> /p/bin/proj4/lib;/p/bin/proj4/share/proj

No, not $PATH for anything other than executables. You may need a 
different path for the shared objects. For the PROJ shared files, set 
PROJ_LIB, which should be respected.

Roger

>
> I installed rgdal using the following command
>
> Install.packages("rgdal",configure.args = 
> c("--with-project-include=/p/bin/proj4/include","--with-proj-lib=/p/bin/proj4/lib","--with-proj-share=/p/bin/proj4/share/proj"))
>
> When I load rgdal, the path to gdal is displayed, but the path to proj4 
> says "(autodetected)".
>
> However, I receive the message "rgdal::checkCRSArgs:: no proj_defs.dat 
> in PROJ.4 shared files" when I try to use the raster() function from the 
> raster package.
>
> I have verified that proj_def.dat is in /p/bin/proj4/share/proj. I have 
> also tried placing it in other locations.
>
> Any suggestions on how  I can get rgdal to find the proj_def.dat file(s)?
>
> Wade
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

-- 
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
http://orcid.org/0000-0003-2392-6140
https://scholar.google.no/citations?user=AWeghB0AAAAJ&hl=en
http://depsy.org/person/434412



More information about the R-sig-Geo mailing list