Opened 11 years ago
Closed 6 years ago
#4978 closed defect (wontfix)
Writing line with in dxf driver
Reported by: | mhugent | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SF | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: |
Description
Obviously, the AutoCAD based dxf readers ignore code 370 for linewidth and use code 43 instead. The following patch to ogrdxfwriter changes that and multiplies by 100 (it seems to me the dxf units are 1/100 mm. Is that correct?)
Please review carefully (I'm not a dxf expert and also not an OGR programmer)
Attachments (1)
Change History (2)
by , 11 years ago
Attachment: | ogr_dxf.diff added |
---|
comment:1 by , 6 years ago
Component: | default → OGR_SF |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
I think there may be some confusion over the term "width" here. It seems that OGR uses it to mean the thickness of the pen, while AutoCAD uses it to refer to the gap between two parallel lines, which may or may not be filled in depending on the value of the FILLMODE system variable.
The group code 43 stores the width in the AutoCAD sense (only for LWPOLYLINE entities), whereas 370 stores the width in the OGR sense (what AutoCAD calls "lineweight").
For consistency, since only LWPOLYLINEs support this notion of "width", I think the current behaviour is correct.