Opened 16 years ago
Closed 15 years ago
#2587 closed defect (invalid)
Ring orientation of polygon are not correctly handled when written through ORG/Shape
Reported by: | Nicolas Simon | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SF | Version: | unspecified |
Severity: | major | Keywords: | OGR Shape Polygon |
Cc: |
Description
In shape2ogr.cpp, function SHPReadOGRObject takes care of ring orientation to determine exterior/interior ring of a polygon.
This is not the case in SHPWriteOGRObject. I have OGRPolygon (read from other format) with conterclockwise exterior ring and clockwise interor ring. These king of polygon are not correctly handled. This cause problem when I read again the SHP file trought OGR.
Change History (2)
comment:1 by , 16 years ago
comment:2 by , 15 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
I retry with my dataset and found that my dataset was corrupted. This problem should no longer be considered
Note:
See TracTickets
for help on using tickets.
When writing a polygon, SHPWriteOGRObject calls SHPRewindObject whose purpose is to "Reset the winding of polygon objects to adhere to the specification."
Could you provide data and command to reproduce the problem, and describe precisely what the problem is.