summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-10-03 12:27:30 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-10-03 12:27:30 (GMT)
commit081d2950f7e7a7f587b76191386e4b1047e798a7 (patch)
tree4ad3c0f99fb72e1693670d11700d17f197928e4a
parent69fdb9bc11b303bbfc38274cc56f3ab38f17d6bd (diff)
Disable node reduction on polygons/rings for now. Needs more work.
-rw-r--r--tools/vectorosm-tilecreator/NodeReducer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/vectorosm-tilecreator/NodeReducer.cpp b/tools/vectorosm-tilecreator/NodeReducer.cpp
index eff497b..b7d30cc 100644
--- a/tools/vectorosm-tilecreator/NodeReducer.cpp
+++ b/tools/vectorosm-tilecreator/NodeReducer.cpp
@@ -39,6 +39,9 @@ NodeReducer::NodeReducer(GeoDataDocument* document, int zoomLevel) :
placemark->setGeometry(reducedLine);
}
+ /*
+ * @todo FIXME distance based reduction is too simple for polygons, needs sth like Douglas-Peucker
+ *
else if(geometry->nodeType() == GeoDataTypes::GeoDataLinearRingType) {
GeoDataLinearRing const * prevRing = static_cast<GeoDataLinearRing const *>(geometry);
GeoDataLinearRing* reducedRing = new GeoDataLinearRing;
@@ -62,6 +65,7 @@ NodeReducer::NodeReducer(GeoDataDocument* document, int zoomLevel) :
}
placemark->setGeometry(reducedPolygon);
}
+ */
}
}