[GRASS-dev] Re: [GRASS5] Re: auto-locate EPSG

Glynn Clements glynn at gclements.plus.com
Thu May 11 19:25:38 EDT 2006


Markus Neteler wrote:

> > _BUT_ $PROJLIB (from --with-proj-libs=) generally isn't set unless the
> >
> > user has it somewhere weird. ??? For the standard places ld.so.conf path
> > is used without -L -I and the lib test passes without further complication.
> 
> I have hacked
>  lib/init/Makefile
> to avoid the currently unpleasant situation that PROJSHARE remains
> completely
> undefined if --with-proj-share isn't used. Now, instead if leaving PROJSHARE
> empty and creating epsg_option.tcl and make_location_epsg.sh incorrectly,
> it is set to /usr/local/share/proj. If PROJSHARE was defined via configure,
> that directory is used.
> 
> Hoping for a better solution,

AFAICT, there isn't any way to discover the path used by the PROJ
library; the variable in which it is stored is static.

A program which wants to read the EPSG file could do so by linking
against the PROJ library and using pj_open_lib() to open the file. But
that seems like overkill if the program doesn't need the PROJ library
for any other reason.

-- 
Glynn Clements <glynn at gclements.plus.com>




More information about the grass-dev mailing list