summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-11-08 21:36:24 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-11-08 21:36:24 (GMT)
commitf1ed206c80c4928d0f88421431bd9e0287046513 (patch)
treeef5128b139a80642a08a791f325de0b531a401bf
parent3e8d79cd9fa5e15678fb0b281fd306b704f60b76 (diff)
Keep more node details for strings on level 17
-rw-r--r--tools/vectorosm-tilecreator/NodeReducer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/vectorosm-tilecreator/NodeReducer.cpp b/tools/vectorosm-tilecreator/NodeReducer.cpp
index e20194a..1966dbf 100644
--- a/tools/vectorosm-tilecreator/NodeReducer.cpp
+++ b/tools/vectorosm-tilecreator/NodeReducer.cpp
@@ -68,6 +68,9 @@ qint64 NodeReducer::remainingNodes() const
qreal NodeReducer::epsilonForString(int detailLevel) const
{
+ if (detailLevel >= 17) {
+ return 0.25;
+ }
int const factor = 1 << (qAbs(detailLevel-12));
return detailLevel < 12 ? 30.0 * factor : 30.0 / factor;
}