Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#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 Even Rouault, 11 years ago

Keywords: GML OGR_GEOMETRY added
Milestone: 1.8.2
Resolution: fixed
Status: newclosed

Fixed in trunk (r23705), branches/1.9 (r23706) and branches/1.8 (r23707)

comment:2 by Even Rouault, 10 years ago

Milestone: 1.8.2

Milestone 1.8.2 deleted

Note: See TracTickets for help on using tickets.