summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-11-13 16:48:35 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-11-13 16:48:35 (GMT)
commite2c59ba1c5f08921d8115b1424064072eb72adeb (patch)
tree8397d5209921b0350427ab6f41f7dc96881d513e
parentae56edcc0f27c22cc7c73cb7195335c650571f29 (diff)
Align D/P epsilon between low and med/high tiles.
-rw-r--r--tools/vectorosm-tilecreator/NodeReducer.cpp4
-rw-r--r--tools/vectorosm-tilecreator/main.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/vectorosm-tilecreator/NodeReducer.cpp b/tools/vectorosm-tilecreator/NodeReducer.cpp
index 1966dbf..6eadc9d 100644
--- a/tools/vectorosm-tilecreator/NodeReducer.cpp
+++ b/tools/vectorosm-tilecreator/NodeReducer.cpp
@@ -71,13 +71,13 @@ qreal NodeReducer::epsilonForString(int detailLevel) const
if (detailLevel >= 17) {
return 0.25;
}
- int const factor = 1 << (qAbs(detailLevel-12));
+ int const factor = 1 << (qAbs(detailLevel-11));
return detailLevel < 12 ? 30.0 * factor : 30.0 / factor;
}
qreal NodeReducer::epsilonForArea(int detailLevel) const
{
- int const factor = 1 << (qAbs(detailLevel-12));
+ int const factor = 1 << (qAbs(detailLevel-11));
return detailLevel < 12 ? 60.0 * factor : 60.0 / factor;
}
diff --git a/tools/vectorosm-tilecreator/main.cpp b/tools/vectorosm-tilecreator/main.cpp
index 9fc0a33..25825cf 100644
--- a/tools/vectorosm-tilecreator/main.cpp
+++ b/tools/vectorosm-tilecreator/main.cpp
@@ -208,7 +208,7 @@ int main(int argc, char *argv[])
continue;
}
GeoDataDocument* tile = processor.clipTo(zoomLevel, tileId.x(), tileId.y());
- NodeReducer nodeReducer(tile, zoomLevel+1);
+ NodeReducer nodeReducer(tile, zoomLevel);
if (!writeTile(tile, filename)) {
return 4;
}