From d3492cbf1f0c5f75ce217c4076cc20c616686075 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Mon, 16 Dec 2024 20:02:42 +0100 Subject: [PATCH] Use reversePoints() instead of reverseWindingOrder() --- src/coastline_polygons.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coastline_polygons.cpp b/src/coastline_polygons.cpp index ca4b44a..257b0b7 100644 --- a/src/coastline_polygons.cpp +++ b/src/coastline_polygons.cpp @@ -93,13 +93,13 @@ unsigned int CoastlinePolygons::fix_direction() { OGRLinearRing* er = polygon->getExteriorRing(); assert(er); if (!er->isClockwise()) { - er->reverseWindingOrder(); + er->reversePoints(); // Workaround for bug in OGR: reverseWindingOrder sets dimensions to 3 er->setCoordinateDimension(2); for (int i = 0; i < polygon->getNumInteriorRings(); ++i) { OGRLinearRing* ir = polygon->getInteriorRing(i); assert(ir); - ir->reverseWindingOrder(); + ir->reversePoints(); // Workaround for bug in OGR: reverseWindingOrder sets dimensions to 3 ir->setCoordinateDimension(2); }