Opened 10 years ago
Last modified 8 years ago
#5705 closed defect
[AutoCAD DXF] Processing of Ellipses with negative extrusion — at Initial Version
Reported by: | ju420xt5z | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 2.1.0 |
Component: | OGR_SF | Version: | 1.11.0 |
Severity: | normal | Keywords: | dxf |
Cc: |
Description
I have a file with 2 partial ellipses inside a DXF (attached file "sampleb_input.dxf"). The ellipses come from a much bigger DXF but the issue can be seen from just this sample.
I am running the following command: ogr2ogr -f "DXF" sampleb_output.dxf sampleb_input.dxf
The result I obtain is wrong (attached file "sampleb_output.dxf"). Basically, one the ellipses in the output has a wrong angle and its X coordinates are wrong.
Doing some investigation inside the input DXF, I saw that the ellipse that converts correctly has a Z extrusion axis value (group code 230) of 1.0, whereas the ellipse that was not converted correctly has a Z extrusion axis value of -1.0. I have done a test when I changed reverse its Z extrusion axis (to 1.0) and added Pi/2 to the start and end angles (41 and 42) in attached file "sampleb_input-mod.dxf". Then the conversion of the previously incorrect ellipse is done correctly (attached file "sampleb_output-mod.dxf").
sampleb_input