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).
#2 Updated by Radim Blazek over 7 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.