ogrinfo/ogr2ogr -where OGR_GEOMETRY='XXX' doesn't work on a GML layer
|Reported by:||Even Rouault||Owned by:||warmerdam|
This is due to the fact the the geometry is assigned to the feature after the attribute filter is evaluated, but in that case, we of course need to assign it before. Other drivers might be affected.
Workaround that works at least in GDAL 1.9.0, instead of using -where, use full SQL with OGRSQL dialect :
-sql "select * from layerFoo where ogr_geometry='blah'" -dialect OGRSQL