summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-11-13 16:57:59 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-11-13 16:57:59 (GMT)
commit9d845f69cdd8cdfde9d4cb0a0aa469aa5651d733 (patch)
tree892467ac40370707562b3b2fc6f87133cac94e6a
parente2c59ba1c5f08921d8115b1424064072eb72adeb (diff)
Avoid overflows (?) for large (?) values. Fixes date line appearance.
TODO: inspect valid ranges more closely, avoid loss of precision in high zoom levels. Might need a tile level dependent scale value.
-rw-r--r--tools/vectorosm-tilecreator/clipper/clipper.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vectorosm-tilecreator/clipper/clipper.hpp b/tools/vectorosm-tilecreator/clipper/clipper.hpp
index ec086ec..410b8a3 100644
--- a/tools/vectorosm-tilecreator/clipper/clipper.hpp
+++ b/tools/vectorosm-tilecreator/clipper/clipper.hpp
@@ -87,7 +87,7 @@ enum PolyFillType { pftEvenOdd, pftNonZero, pftPositive, pftNegative };
struct IntPoint {
cInt X;
cInt Y;
- constexpr static qint64 const scale = 10000000000;
+ constexpr static qint64 const scale = 10000000;
#ifdef use_xyz
cInt Z;
IntPoint(cInt x = 0, cInt y = 0, cInt z = 0): X(x), Y(y), Z(z) {};