Commit 328c6537 authored by Dennis Nienhüser's avatar Dennis Nienhüser

Remove workaround for closing poylgons (see 39fb2c30)

parent b6f9b1d8
......@@ -81,12 +81,7 @@ GeoDataDocument *ShpCoastlineProcessor::cutToTiles(unsigned int zoomLevel, unsig
foreach(const QPolygonF& polygon, clippedPolygons) {
qDebug() << polygon.size();
// Dirty fix to close the polygons.
GeoDataLinearRing outerBoundary = BaseClipper::qPolygon2linearRing(polygon);
if(outerBoundary.first() != outerBoundary.last()) {
outerBoundary.append(outerBoundary.first());
}
GeoDataPolygon* newMarblePolygon = new GeoDataPolygon();
newMarblePolygon->setOuterBoundary(outerBoundary);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment