Re: [gdal-dev] [python-ogr] Transform datasource problems

2011-02-10 Thread Frank Broniewski
Ok, this is the script made up yesterday: http://paste.pocoo.org/show/336317/ and an example script which is using it: http://paste.pocoo.org/show/336318/ The convert_datasource funtion can convert an input datasource from one format to another, and in an optional step do a coordinate transfor

Re: [gdal-dev] [python-ogr] Transform datasource problems

2011-02-10 Thread Even Rouault
Le jeudi 10 février 2011 09:09:45, Frank Broniewski a écrit : > Even, > > thank you for your verbose and helpful answer! > > Am 09.02.2011 20:24, schrieb Even Rouault: > > Several points : > > > > 1) The implementation of Layer.GetFeature() is only efficient for just a > > few drivers (shapefile

Re: [gdal-dev] [python-ogr] Transform datasource problems

2011-02-10 Thread Frank Broniewski
Even, thank you for your verbose and helpful answer! Am 09.02.2011 20:24, schrieb Even Rouault: Several points : 1) The implementation of Layer.GetFeature() is only efficient for just a few drivers (shapefile). Other drivers will need to sequentially read from the first feature ... So use GetN

Re: [gdal-dev] [python-ogr] Transform datasource problems

2011-02-09 Thread Even Rouault
Several points : 1) The implementation of Layer.GetFeature() is only efficient for just a few drivers (shapefile). Other drivers will need to sequentially read from the first feature ... So use GetNextFeature() 2) The real bug is that you don't rewrite the feature to its layer. So you need to

[gdal-dev] [python-ogr] Transform datasource problems

2011-02-08 Thread Frank Broniewski
Hello, I have trouble transforming a datasource from one srs to another. I am using the python bindings and gdal 1.6.0 on Windows. Problem is, whatever I do to the datasource and the contained feature geometries, the coordinates just don't get transformed. My code, from what I've figured out