[gdal-dev] VRT derived band, pixel functions and Python bindings

Armin Burger armin.burger at gmx.net
Thu Mar 22 14:26:56 EDT 2012


Hi all

I set up 2 pixel functions to be used with VRT images and derived bands. 
This works fine with the GDAL utilities and also with MapServer and 
Python MapScript.

If I try however to load the pixel functions in GDAL-Python as drivers, 
I run into problems. The following code

   from osgeo import gdal
   import os

   os.putenv("GDAL_DRIVER_PATH", "/usr/local/share/gdal/gdalplugins")
   gdal.AllRegister()

produces the error:

python: symbol lookup error: /usr/local/share/gdal/gdalplugins 
/gdal_SpotBlue.so: undefined symbol: GDALAddDerivedBandPixelFunc


So is this sort of a bug or is this functionality not available via the 
GDAL Python bindings? Environment is Linux, GDAL 1.9, Python 2.6.

Thanks for any help
Armin


More information about the gdal-dev mailing list