Skip to content

Commit 084af55

Browse files
committed
Remove now unnecessary (I hope) workaround
1 parent d3492cb commit 084af55

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/coastline_polygons.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,10 @@ unsigned int CoastlinePolygons::fix_direction() {
9494
assert(er);
9595
if (!er->isClockwise()) {
9696
er->reversePoints();
97-
// Workaround for bug in OGR: reverseWindingOrder sets dimensions to 3
98-
er->setCoordinateDimension(2);
9997
for (int i = 0; i < polygon->getNumInteriorRings(); ++i) {
10098
OGRLinearRing* ir = polygon->getInteriorRing(i);
10199
assert(ir);
102100
ir->reversePoints();
103-
// Workaround for bug in OGR: reverseWindingOrder sets dimensions to 3
104-
ir->setCoordinateDimension(2);
105101
}
106102
m_output.add_error_line(make_unique_ptr_clone<OGRLineString>(er), "direction");
107103
warnings++;

0 commit comments

Comments
 (0)