Antonio Valentino wrote:
Hi list,
I'm trying to create a *Derived* raster band in a virtual dataset.

All my attempts seems to fail:

ds.AddBand(options={'subClass': 'VRTDerivedRasterBand'})

raises an exception while

ds.AddBand(options='subClass="VRTDerivedRasterBand"')
ds.AddBand(options=['subClass="VRTDerivedRasterBand"'])

Antonio,

I believe the correct syntax is:

  ds.AddBand(options=['subClass=VRTDerivedRasterBand'])

The options should be a list of name=value pairs.  Your extra double
quotes within the string will make the class name comparison fail
since you are effectively passing "\"VRTDerivedRasterBand\"" in C
terms.

Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, [email protected]
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
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to