Opened 11 years ago

Closed 11 years ago

#5210 closed defect (fixed)

DXF linestring export with Z not correctly imported in ACAD

Reported by: koestli Owned by: warmerdam
Priority: normal Milestone: 1.10.1
Component: OGR_SF Version: 1.9.0
Severity: normal Keywords: dxf
Cc:

Description (last modified by koestli)

Linestrings are exported as LWPOLYLINES; if the points have different heights, the import in ACAD is incorrect, because ACAD (and others) expect only one height. POLYLINE entities should be used in these cases. The problem seems still there in 1.10. Unfortunatly I can add sample code based on 1.9.0 only.

Attachments (1)

ogrdxfwriterlayer.cpp (42.3 KB ) - added by koestli 11 years ago.
gdal-1.9.0\ogr\ogrsf_frmts\dxf\ogrdxfwriterlayer.cpp : OGRDXFWriterLayer::WritePOLYLINE()

Download all attachments as: .zip

Change History (5)

by koestli, 11 years ago

Attachment: ogrdxfwriterlayer.cpp added

gdal-1.9.0\ogr\ogrsf_frmts\dxf\ogrdxfwriterlayer.cpp : OGRDXFWriterLayer::WritePOLYLINE()

comment:1 by koestli, 11 years ago

Description: modified (diff)

comment:2 by Even Rouault, 11 years ago

Component: defaultOGR_SF
Keywords: dxf added
Milestone: 1.10.1
Resolution: fixed
Status: newclosed

Patch applied with minor reformatting in trunk (r26353) and branches/1.10 (r26354), with a bit of testing too. Thanks

comment:3 by Even Rouault, 11 years ago

Resolution: fixed
Status: closedreopened

koestli,

A bug report has been done recently in http://trac.osgeo.org/gdal/ticket/5217 after applying your patch. Perhaps you could check if you encounter the same issue as the reporter of #5217 ? Looking at http://www.autodesk.com/techpubs/autocad/acad2000/dxf/polyline_dxf_06.htm , it seems that a dummy point with pairs "10 0" and "20 0" should be written for a POLYLINE. The Subclass marker should also likely be set to AcDb3dPolyline.

Thanks

comment:4 by Even Rouault, 11 years ago

Resolution: fixed
Status: reopenedclosed

trunk r26372 and branches/1.10 r26373 "DXF: fix writing of POLYLINE objects (#5217, #5210)"

Note: See TracTickets for help on using tickets.