Bug report #14138

Vector layers have been exported into broken DXF file

Added by Eva Stopkova almost 9 years ago. Updated about 8 years ago.

Status:Closed
Priority:Low
Assignee:-
Category:DXF export
Affected QGIS version:2.12.2 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:22140

Description

When exporting layers loaded into QGIS project, output DXF file is broken. Error message in AutoCAD (Civil 3D 2015) looks like this:

DXF read error
Error in APPID Table
DXF read error on line 146.
Invalid or incomplete DFX input -- drawing discarted.

In the line 146, there is "inf.0" instead of meaningful value (as well as in another lines). This happens for shapefiles as well as for the layers loaded from GRASS GIS mapset.

Many thanks for considering this issue.

test.zip - sample project and DXF output (1.92 MB) Andrea Ghensi, 2016-08-18 08:33 AM

Associated revisions

Revision 0a07fee1
Added by Jürgen Fischer about 8 years ago

dxf export: avoid symbology scale 0 (fixes #14138)

Revision 72cbff91
Added by Jürgen Fischer about 8 years ago

dxf export: avoid symbology scale 0 (fixes #14138)

(cherry picked from commit 0a07fee15297e18a73b63f194f5aeecffd76800c)

Revision 7b7a156f
Added by Jürgen Fischer about 8 years ago

dxf export: avoid symbology scale 0 (fixes #14138)

(cherry picked from commit 0a07fee15297e18a73b63f194f5aeecffd76800c)

Revision 21325a2b
Added by Jürgen Fischer about 8 years ago

dxf export: avoid symbology scale 0 (fixes #14138)

(cherry picked from commit 0a07fee15297e18a73b63f194f5aeecffd76800c)

History

#1 Updated by Jürgen Fischer over 8 years ago

  • Status changed from Open to Feedback

can you supply a sample input file that produces output like this?

#2 Updated by Andrea Ghensi about 8 years ago

Hi,
I can reproduce the error (In fact, I'm not using this feature but exporting every layer to their own DXF).
Many lines have the "inf.0" or "-inf.0" value instead of an actual value.

Attached a simple project (using OSM features) and the corrupted DXF.
I'm on Win 8, Qgis 2.14.

#3 Updated by Jürgen Fischer about 8 years ago

Andrea Ghensi wrote:

Hi,
I can reproduce the error (In fact, I'm not using this feature but exporting every layer to their own DXF).
Many lines have the "inf.0" or "-inf.0" value instead of an actual value.

Attached a simple project (using OSM features) and the corrupted DXF.
I'm on Win 8, Qgis 2.14.

Does that only happen if you choose 0 as symbology scale?

#4 Updated by Jürgen Fischer about 8 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF