Opened 14 years ago
Last modified 14 years ago
#3393 closed defect
DXF Doesn't identify polygons correctly on write — at Initial Version
Reported by: | gaige | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.7.2 |
Component: | OGR_SF | Version: | unspecified |
Severity: | normal | Keywords: | DXF |
Cc: |
Description
There is a test in the OGRDXFWriterLayer::WritePOLYLINE function that is intended to identify a linear ring. Unfortunately, due to the fact that wkbLinearRing is never returned by linear rings, it always sees it as a wkbLineString, which means that polygons are always written as lines, and not closed figures (which is to say that attribute 70 is always set to 0).
Replacing this test with the "standard"
if( EQUAL( ((OGRGeometry*) hGeom)->getGeometryName(), "LINEARRING" ) )
test fixes the problem.
Note:
See TracTickets
for help on using tickets.
ogrdxflayer.cpp diffs