Opened 12 years ago

Closed 12 years ago

#4751 closed defect (fixed)

OSM driver should validate attributes in a filter only against selected layer

Reported by: Jukka Rahkonen Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords: OSM
Cc:

Description

When setting an attribute filter, the attribute in a filter must exist on all of the OSM layers (points, lines, polygons, multipolygons) even in only one of the layers is queried. For example the following example gives an error if "amenity" is not defined for all the four layers.

ogr2ogr poitest.shp finland.osm.pbf points -select name,amenity -where "amenity='toilets'" ERROR 1: 'amenity' not recognised as an available field FAILURE: SetAttributeFilter(amenity='toilets') failed.

Change History (1)

comment:1 by Even Rouault, 12 years ago

Resolution: fixed
Status: newclosed
Version: unspecifiedsvn-trunk

r24688 /trunk/gdal/apps/ogr2ogr.cpp: ogr2ogr (OSM case): only apply attribute filter on specified layers (#4751)

Note: See TracTickets for help on using tickets.