[Gdal-dev] Setting PROJ4 path programatically

Mateusz Loskot mateusz at loskot.net
Wed Jun 14 18:11:12 EDT 2006


Craig Miller wrote:
> In digging through the archives, I found a post that briefly
> describes how to set the path where PROJ4 looks for its data files
> (E.g. proj4/nad).  The message mentions two functions:
> 
> pj_set_finder(...);
> CPLSetConfigOption("GDAL_DATA", ...);
> 
> If I'm only using OGRSpatialReference directly and not calling into
> proj4 directly is the CPLSetConfigOption sufficient or do I need to
> call pj_set_finder(...) as well.
> 
> Will these calls affect any other applications that are running on
> the same machine that are also using PROJ4?


I can answer about CPLSetConfigOption().
You can safely use this call and it won't affect any other
applications/external settings.

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the Gdal-dev mailing list