[gdal-dev] driver paths - either/or

Frank Warmerdam warmerdam at pobox.com
Wed Oct 28 14:25:25 EDT 2009


William Kyngesburye wrote:
> I just noticed that when setting GDAL_DRIVER_PATH in the environment, it 
> overrides the paths configured into GDAL, instead of adding to those 
> paths.  Was this intentional?  Any way to tell GDAL to *add* 
> GDAL_DRIVER_PATH to the configured paths?
> 
> I want to override the installed GRASS plugin when starting up GRASS to 
> point to a version compatible with the GRASS being started.
> 
> ie:
> 
> installed plugin: gdal_ & ogr_GRASS v6.4
> also installed as a plugin: gdal_ECW_JP2ECW
> 
> GDAL_DRIVER_PATH=/path/to/GRASS-6.5/lib/gdalplugins (gdal_ & ogr_GRASS 
> v6.5)
> 
> So, the v6.5 plugin is loaded, but now I don't have my ECW plugin.

William,

There is no way to ask that GDAL_DRIVER_PATH be added to the default
path, but it can hold a list of directories so you can supply the new
directory and the old directories.

eg.
GDAL_DRIVER_PATH=path/to/GRASS-6.5/lib/gdalplugins:/path/to/normal/gdal/plugins




-- 
---------------------------------------+--------------------------------------
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    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list