Bug report #10485

DXF entities geometry collection, null value?

Added by SC SC over 10 years ago. Updated about 8 years ago.

Status:Closed
Priority:Normal
Assignee:Even Rouault
Category:Data Provider/OGR
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

Description

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?

G267_0072C0.DXF - dxf cadastral (1.49 MB) SC SC, 2014-06-06 02:03 AM

History

#1 Updated by Even Rouault about 8 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.

Also available in: Atom PDF