Hi, resolved the quest. the command is layer = ds.ExecuteSQL(sqlString,None,"SQLITE")
Andrea. 2014-06-19 18:10 GMT+02:00 Andrea Peri <[email protected]>: > 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 ogr2ogr > using the two parameters: > > -sql statement and the parameter "-dialect SQLITE" > > is this possible in python ? > > Thx to everyone, > > -- > ----------------- > Andrea Peri > . . . . . . . . . > qwerty àèìòù > ----------------- -- ----------------- Andrea Peri . . . . . . . . . qwerty àèìòù ----------------- _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
