Bug report #7895
DXF [email protected] import: cannot distinguish between different geometry types
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Windows||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||16768|
By dragging and dropping a DXF file into QGIS 1.8, a single QGIS layer is created, containing e.g. point and lines at the same time.
The new layer with more geometry types cannot be properly handled in QGIS (for example you cannot cut and past it into a PostGIS new layer).
OGR provider - virtual sublayers for each geometry type in multi geometry layers, fixes #7895
#1 Updated by Giovanni Manghi about 10 years ago
- Status changed from Open to Feedback
does not happen on qgis master, can you try and report back? cheers!
#2 Updated by Radim Blazek about 10 years ago
If a layer has multiple geometries, ogr provider guess the geometry type from the first feature. Other geometries are not rendered but appear in attribute table for example.
Features with geometry type other than the first one may be for example copied to clipboard (even if not visible). If such features are pasted to a layer with different geometry type constraint, it fails.
I am going to fix that by virtual sublayers for each geometry type.
#3 Updated by Radim Blazek about 10 years ago
- Status changed from Feedback to Closed
Fixed in changeset af0f61e699d89c4db9ee8f618c032b75e6211d33.