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 )
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)
Change History (5)
by , 11 years ago
Attachment: | ogrdxfwriterlayer.cpp added |
---|
comment:1 by , 11 years ago
Description: | modified (diff) |
---|
comment:2 by , 11 years ago
Component: | default → OGR_SF |
---|---|
Keywords: | dxf added |
Milestone: | → 1.10.1 |
Resolution: | → fixed |
Status: | new → closed |
comment:3 by , 11 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
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
gdal-1.9.0\ogr\ogrsf_frmts\dxf\ogrdxfwriterlayer.cpp : OGRDXFWriterLayer::WritePOLYLINE()