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 )
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 , 14 years ago
comment:2 by , 14 years ago
Description: | modified (diff) |
---|
Please include a shapefile and report the OGR version you are using.
comment:3 by , 14 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
Sorry, first query should be:
Need some sleep...