Re: [gdal-dev] How open a subset dataset with python

2014-06-27 Thread Andrea Peri
Thx Even, I try it. ___ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev

Re: [gdal-dev] How open a subset dataset with python

2014-06-26 Thread Even Rouault
Le jeudi 19 juin 2014 22:05:13, Andrea Peri a écrit : > Hi, resolved the quest. > > the command is > layer = ds.ExecuteSQL(sqlString,None,"SQLITE") Andrea, You could also directly open with ogr.Open(file) (no need to explicitely request the driver). And if the driver is indeed SQLite, you don't

Re: [gdal-dev] How open a subset dataset with python

2014-06-19 Thread Andrea Peri
Hi, resolved the quest. the command is layer = ds.ExecuteSQL(sqlString,None,"SQLITE") Andrea. 2014-06-19 18:10 GMT+02:00 Andrea Peri : > Hi, > > I'm study-ing the option to use the python with gdal: > This are my first step on the python world. > > I use this code: > > driver = ogr.GetDriverByN

[gdal-dev] How open a subset dataset with python

2014-06-19 Thread Andrea Peri
Hi, I'm study-ing the option to use the python with gdal: This are my first step on the python world. I use this code: driver = ogr.GetDriverByName('SQLite') ds = driver.Open(file) layer = ds.GetLayerByName(dataset) But I like to open instead of a full "dataset" a subset of it as usually do in