Re: [gdal-dev] Creating derived raster bands using python

2009-03-08 Thread Antonio Valentino
Il giorno Thu, 05 Mar 2009 09:26:51 -0500 Frank Warmerdam warmer...@pobox.com ha scritto: 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'})

[gdal-dev] ogr2ogr: Dataset creation option (format specific)

2009-03-08 Thread Hermann Peifer
Hi, The ogr2ogr man page has some limited documentation on the -dsco switch: -dsco NAME=VALUE: Dataset creation option (format specific) Can someone point me to some more specific information? Thanks in advance, Hermann ___ gdal-dev mailing list

Re: [gdal-dev] ogr2ogr: Dataset creation option (format specific)

2009-03-08 Thread Even Rouault
Hermann, As suggested by the man page of ogr2ogr, dataset creation options are specific to each driver. So you have to look at the documentation of the OGR driver you're interested in to see which dataset creation options it offers : http://gdal.org/ogr/ogr_formats.html Even Le Sunday 08

Re: [gdal-dev] Creating derived raster bands using python

2009-03-08 Thread Even Rouault
Antonio, There are 2 issues : - the ERROR 1: Corrupt or empty VRT source XML document. comes from the line 'b.SetMetadata(md, 'new_vrt_sources')'. However I'm not sure how to achieve what you want to do. I've the feeling you can't really define the pixel function that way. You should call

Re: [gdal-dev] Creating derived raster bands using python

2009-03-08 Thread Antonio Valentino
Il giorno Sun, 8 Mar 2009 20:51:46 +0100 Even Rouault even.roua...@mines-paris.org ha scritto: Antonio, There are 2 issues : [cut] - the crash comes from the fact that you don't have defined a pixel function for the derived band. I've created ticket

Re: [gdal-dev] create 25D MultiPolygon how to

2009-03-08 Thread legeochen
Wow: I have tried your suggestion. but it won't work. It seems the shp file create by ogr is a little different from which generated with shplib. reading shp file ceated by ogr with shplib gives me warning like the dbf. containe different record than shp. Actually, only the first geometry can be