Bug report #7895

DXF drag@drop import: cannot distinguish between different geometry types

Added by Gabriele Dallago over 11 years ago. Updated over 11 years ago.

Status:Closed
Priority:Normal
Assignee:-
Category:-
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

Description

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).

POZZETTI_PERGINE.dxf (85.2 KB) Gabriele Dallago, 2013-05-24 08:31 AM

Associated revisions

Revision af0f61e6
Added by Radim Blazek over 11 years ago

OGR provider - virtual sublayers for each geometry type in multi geometry layers, fixes #7895

History

#1 Updated by Giovanni Manghi over 11 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 over 11 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 over 11 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF