We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3492cb commit 084af55Copy full SHA for 084af55
src/coastline_polygons.cpp
@@ -94,14 +94,10 @@ unsigned int CoastlinePolygons::fix_direction() {
94
assert(er);
95
if (!er->isClockwise()) {
96
er->reversePoints();
97
- // Workaround for bug in OGR: reverseWindingOrder sets dimensions to 3
98
- er->setCoordinateDimension(2);
99
for (int i = 0; i < polygon->getNumInteriorRings(); ++i) {
100
OGRLinearRing* ir = polygon->getInteriorRing(i);
101
assert(ir);
102
ir->reversePoints();
103
104
- ir->setCoordinateDimension(2);
105
}
106
m_output.add_error_line(make_unique_ptr_clone<OGRLineString>(er), "direction");
107
warnings++;
0 commit comments