driver paths - either/or

3 messages Options
Embed this post
Permalink
William Kyngesburye

driver paths - either/or

Reply Threaded More More options
Print post
Permalink
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 Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Those people who most want to rule people are, ipso-facto, those  
least suited to do it."

- A rule of the universe, from the HitchHiker's Guide to the Galaxy


_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
Frank Warmerdam

Re: driver paths - either/or

Reply Threaded More More options
Print post
Permalink
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, [hidden email]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
William Kyngesburye

Re: driver paths - either/or

Reply Threaded More More options
Print post
Permalink
On Oct 28, 2009, at 1:25 PM, Frank Warmerdam wrote:

> 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 kinda figured I'd have to do something like that.  But then the  
problem is discovering the configured paths.  Since I'm dealing with  
my own distributions, I could assume what those paths are...

thanks anyways


-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"History is an illusion caused by the passage of time, and time is an  
illusion caused by the passage of history."

- Hitchhiker's Guide to the Galaxy


_______________________________________________
gdal-dev mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/gdal-dev