#4428 closed defect (fixed)
ogrinfo/ogr2ogr -where OGR_GEOMETRY='XXX' doesn't work on a GML layer
Reported by: | Even Rouault | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SF | Version: | unspecified |
Severity: | normal | Keywords: | GML OGR_GEOMETRY |
Cc: |
Description
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
Change History (2)
comment:1 by , 12 years ago
Keywords: | GML OGR_GEOMETRY added |
---|---|
Milestone: | → 1.8.2 |
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in trunk (r23705), branches/1.9 (r23706) and branches/1.8 (r23707)