Jay,
You can do all the stuff using OGR's SQL engine. OGR also supports memory
layers.
Refer to GDAL's RFC 28 [1], and the test scripts [2] & [3]
[1]: http://trac.osgeo.org/gdal/wiki/rfc28_sqlfunc
[2]: http://trac.osgeo.org/gdal/browser/trunk/autotest/ogr/ogr_sql_rfc28.py
[3]: http://trac.osgeo.o
I have a script, written to use ESRI's ArcPy, which I am attempting to
re-write using the ogr/gdal python bindings. One of the parameters that I
can pass to ESRI's MakeFeatureLayer function is an SQL Query. This creates
a featurelayer (in memory) which contains only those rows which meet the
crit