Bug report #10485
DXF entities geometry collection, null value?
|Affected QGIS version:||2.2.0||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||up/downstream|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||18897|
when i import certain dxf files (all dxf of italian cadastral agency), it give entities Point, entities Linestring and entities GeometryCollection , but this last not show nothing on qgis only attibute table has something
Geometry Collections is not supported?
#1 Updated by Even Rouault about 7 years ago
- Resolution set to up/downstream
- Assignee set to Even Rouault
- Status changed from Open to Closed
I've committed an improvement in GDAL per https://trac.osgeo.org/gdal/changeset/35630 (will be in GDAL 2.2) to transform GeometryCollections to MultiPoint, MultiLineString, MultiPolygon when possible. On this dataset, this reduces the number of real GeometryCollection to 3.
It is also possible to define the DXF_MERGE_BLOCK_GEOMETRIES=FALSE environment variable so that GDAL doesn't try to create GeometryCollections when resolving DXF blocks. But of course you'll get somehow "artifical" objects.