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

2009-03-08 Thread Hermann Peifer
Even Rouault wrote: 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

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 re

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 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 > http://trac.osgeo.org/gdal/ticket/2877 about that one. Even

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

2009-03-08 Thread Even Rouault
Forget what I told about GDALAddDerivedBandPixelFunc ... This is certainly not the way to define the function name. Le Sunday 08 March 2009 20:51:46 Even Rouault, vous avez écrit : > Antonio, > > There are 2 issues : > - the "ERROR 1: Corrupt or empty VRT source XML document." comes from the > l

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 GD

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 Marc

[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 gda

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 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'}) > > >