Bug report #3111
filtering of shapefile with query builder not working when using 'excluding' query
|Affected QGIS version:||Regression?:||No|
|Operating System:||All||Easy fix?:||No|
|Pull Request or Patch supplied:||Resolution:||invalid|
|Crashes QGIS or corrupts data:||Copied to github as #:||13171|
Let's say you have 4 polygons in a shapefile
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.
#3 Updated by Mathieu Pellerin - nIRV about 10 years ago
- Resolution set to invalid
- Status changed from Open to 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.