Re: [gdal-dev] How to set BoundingBox within a shapefile using OGR Pythons bindings

2009-12-17 Thread Daniele Romagnoli
Thank you guys for the correction. It seems I have copied an old polygon definition in my previous email (in my last script, I have changed odd ',' with ' ' to set couples). The issue was that I missed double brackets. However, the importFromWkt didn't work (Being undefined in the python bindings,

Re: [gdal-dev] How to set BoundingBox within a shapefile using OGR Pythons bindings

2009-12-16 Thread Frank Warmerdam
Daniele Romagnoli wrote: Hi list, I'm creating a shapefile using the OGR python bindings. (from the 1.6.1 installer) I have some issues in creating the boundingBox for it. This is a snippet of the code I'm using: - from osgeo import ogr from

Re: [gdal-dev] How to set BoundingBox within a shapefile using OGR Pythons bindings

2009-12-16 Thread Even Rouault
Daniele, Try: ogr.CreateGeometryFromWkt(wkt) Best regards, Even Daniele Romagnoli a écrit : Hi list, I'm creating a shapefile using the OGR python bindings. (from the 1.6.1 installer) I have some issues in creating the boundingBox for it. This is a snippet of the code I'm using: ---

[gdal-dev] How to set BoundingBox within a shapefile using OGR Pythons bindings

2009-12-16 Thread Daniele Romagnoli
Hi list, I'm creating a shapefile using the OGR python bindings. (from the 1.6.1 installer) I have some issues in creating the boundingBox for it. This is a snippet of the code I'm using: - from osgeo import ogr from osgeo import osr no