[gdal-dev] GetFeature() and attribute/spatial filters

Even Rouault even.rouault at mines-paris.org
Mon Dec 2 11:34:03 PST 2013


Hi,

Frank noticed in http://trac.osgeo.org/gdal/ticket/5309 that the generic 
implementation of GetFeature(), which uses GetNextFeature() internally, did 
not respect its documented behaviour. It should have ignored any attribute or 
spatial filter, which it didn't up to 
http://trac.osgeo.org/gdal/changeset/26688. Now it will temporarily drop any 
attribute or spatial filter during the GetFeature() call, and restore it back 
afterwards (caution: the sequential pointer of GetNextFeature() will have been 
modified, as before)

Authors of drivers that override SetAttributeFilter() and/or 
SetSpatialFilter() and/or GetFeature() must have in mind that assumption.

I've upgraded the OGDI, PG, MySQL, MSSQLSpatial, OCI, SDE, PGeo, ODBC, WALK, 
IDB, SQLite and Ingres drivers. Hopefully no other driver update is needed, 
but you are kindly welcome to check.

Even

-- 
Geospatial professional services
http://even.rouault.free.fr/services.html


More information about the gdal-dev mailing list