Ticket #1704 (closed defect: fixed)
ogr2ogr kml export of polygons can have incorrect vertex winding order
| Reported by: | mashbridge | Owned by: | mloskot |
|---|---|---|---|
| Priority: | high | Milestone: | 1.5.0 |
| Component: | OGR_SF | Version: | 1.4.2 |
| Severity: | normal | Keywords: | kml |
| Cc: | condit@…, Didge, warmerdam |
Description
Exporting to KML via ogr2ogr, particularly where the source data is an ESRI Shapefile, often results in an incorrect polygon winding order.
3D implementations of KML use the vertex winding order of a polygon to calculate lighting. The "front" of a face is defined as a face with an anti-clockwise winding order (positive surface normal). I have attached two images showing the effect of correct and incorrect winding orders.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

