Opened 14 years ago

Closed 14 years ago

#3111 closed bug (invalid)

filtering of shapefile with query builder not working when using 'excluding' query

Reported by: nirvn Owned by: jef
Priority: major: does not work as expected Milestone: Version 1.6.0
Component: Vectors Version:
Keywords: Cc:
Must Fix for Release: Yes Platform: All
Platform Version: Awaiting user input: no

Description (last modified by jef)

Let's say you have 4 polygons in a shapefile

id name
0 polygon-a
1 polygon-b
2 polygon-c
3 polygon-d

If you filter the shapefile using this query:

id = 1 AND id = 2 AND id = 3

QGIS will properly display only the polygons with id 1, 2 and 3.

However, if you filter the shapefile using this query:

id != 0

QGIS will fail to eliminate polygon with id 0.

The problem started to occur 2 days ago.

Change History (3)

comment:1 by nirvn, 14 years ago

Sorry, first query should be:

id = 1 OR id = 2 OR id = 3

Need some sleep...

comment:2 by jef, 14 years ago

Description: modified (diff)

Please include a shapefile and report the OGR version you are using.

comment:3 by nirvn, 14 years ago

Resolution: invalid
Status: newclosed

Wow, turns out the shapefile had - unknown to me until now - duplicates of a number of polygons, including the one I was trying to hide.

Sorry for the noise, closing this => invalid.

Note: See TracTickets for help on using tickets.