[Proj] value of PROJ_LIB variable
Frank Warmerdam
warmerdam at pobox.com
Fri May 5 09:45:51 PDT 2006
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.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGF, http://osgeo.org
More information about the Proj
mailing list