[Proj] value of PROJ_LIB variable

Markus Neteler neteler at itc.it
Sat May 6 12:21:23 EDT 2006


On Fri, May 05, 2006 at 12:45:51PM -0400, Frank Warmerdam wrote:
> Hamish wrote:
> >>A default build on Unix-like systems will define the PROJ_LIB macro to
> >>be the default install directory in pj_open_lib.c.  This is often
> >>/usr/local/share/proj.
> >>
> >>You can also use the pj_set_finder() and pj_set_searchpath() functions
> >>programatically to override how the files are found.
> >
> >
> >Is there a way to figure out what this has been set to after the binary
> >is made? e.g. something analogous to gdal-config.
> 
> Hamish,
> 
> There is currently no way to find out the hardcoded location that
> proj will search for support files.
> 
> >In GRASS we'd like to auto-locate & parse the EPSG file for quickly
> >defining new projects from the startup screen if given a valid code.
> >Usually libproj is found in the LD search path so our ./configure
> >hasn't been told where to look. Knowing --prefix would be enough I
> >think, but PROJ_LIB is the path we want to know.
> 
> Understood.  If you would like to file a request for a proj-config, I
> will try to add it at some point, but it won't help you for quite a while.
> 

Probably we can only loop over common directories and check
if the epsg file is there unless a new proj-config becomes
available and distributed?

Markus


More information about the Proj mailing list