Bug report #15134
Virtual Layer - Selecting multipart features fails
|Affected QGIS version:||2.14.3||Regression?:||No|
|Operating System:||Windows, GNU/Linux||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||23073|
I've created a virtual layer to calculate the building coverage ratio of land parcels. Unfortunately, selecting features with two or more parts seems not to work properly in QGIS 2.14.3 (see screencast).
#3 Updated by gcarrillo - over 4 years ago
- Operating System set to Windows, GNU/Linux
- Priority changed from Normal to High
- Assignee set to Hugo Mercier
- Category set to Data Provider
I confirm this problem occurs not only with multi-part features but with single-part features as well.
See http://gis.stackexchange.com/a/218328/4972 for a reproducible example with single points (airports) with Natural Earth Shapefiles as Virtual Layer's source.
I've tested this on QGIS v2.14.8 (GNU/Linux), QGIS 2.16.3 (Windows 7), and a recent (from October, 2016) QGIS build v2.99 (GNU/Linux).
Sorry for setting priority to high, it's just that, in my opinion, this issue might make Virtual Layers unusable in a production environment.
#5 Updated by Regis Haubourg over 4 years ago
Confirmed here too with even nastier behaviour following that you use the select at id option, or that you cast geometry column to MultiPolygon.
Something is messing with feature id's somewhere.
Attribute table shows ERROR values for the multipolygon object.