Selon David Verbyla <[email protected]>: > I am trying to figure out the syntax for .ExecuteSQL using Python ogr. > > For example: > fireLayer.SetAttributeFilter(None) #returns all 2623 polygons > fireLayer.SetAttributeFilter(" FIREID < 75 ") #returns 4 polygons > > I am trying to get the same results using the ExecuteSQL: > testLayer = dataSource.ExecuteSQL("select * from fireLayer") > type(testLayer) #retuns NoneType > testLayer = dataSource.ExecuteSQL("select * from fireLayer where FIREID < > 75") > type(testLayer) #retuns NoneType
Is the layer name reported by OGR really "fireLayer" ? (in case you made a confusion between the OGR layer name and the Python layer object) _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
