summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-09-19 19:53:59 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-09-19 19:53:59 (GMT)
commit0e3df3294fc1b36120bac6cf58dca7bee7ce431a (patch)
tree0b52e1c1afc92ac3d456b8cc4c49a4cd8741c09a
parent4f42b7231fc0ce51d9b0e81c3897dea60e69d562 (diff)
Provide higher level of detail
Since we display tile level n up to zoom level n+1, reduce nodes for level n+1, not n.
-rw-r--r--tools/vectorosm-tilecreator/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/vectorosm-tilecreator/main.cpp b/tools/vectorosm-tilecreator/main.cpp
index 20e337c..d44f36c 100644
--- a/tools/vectorosm-tilecreator/main.cpp
+++ b/tools/vectorosm-tilecreator/main.cpp
@@ -286,7 +286,7 @@ int main(int argc, char *argv[])
}
}
- NodeReducer reducer(map.data(), zoomLevel);
+ NodeReducer reducer(map.data(), zoomLevel+1);
QString const extension = parser.value("extension");
QString const outputFile = QString("%1/landmass-level-%2.%3").arg(outputName).arg(zoomLevel).arg(extension);
@@ -302,7 +302,7 @@ int main(int argc, char *argv[])
TileIterator iter(world, zoomLevel);
foreach(auto const &tileId, iter) {
GeoDataDocument* tile = processor.clipTo(zoomLevel, tileId.x(), tileId.y());
- NodeReducer reducer(tile, zoomLevel);
+ NodeReducer reducer(tile, zoomLevel+1);
if (!writeTile(parser, outputName, tile, tileId.x(), tileId.y(), zoomLevel)) {
return 4;
@@ -331,7 +331,7 @@ int main(int argc, char *argv[])
GeoDataDocument* tile1 = processor.clipTo(zoomLevel, tileId.x(), tileId.y());
GeoDataDocument* tile2 = landMassClipper.clipTo(zoomLevel, tileId.x(), tileId.y());
GeoDataDocument* combined = mergeDocuments(tile1, tile2);
- NodeReducer reducer(combined, zoomLevel);
+ NodeReducer reducer(combined, zoomLevel+1);
if (!writeTile(parser, outputName, combined, tileId.x(), tileId.y(), zoomLevel)) {
return 4;
}