summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Rahn <rahn@kde.org>2016-09-11 05:00:37 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-09-11 05:53:40 (GMT)
commit5ffca170843876ae99a181f7d27e5cd498a62560 (patch)
tree1426adab8aa5726fbb1b1e0834c3e9b4f9565a33
parent4c0533d747f4569df8adfa455f08a6ce3fafb855 (diff)
Remove wrong factor 90/85.0511
-rw-r--r--tools/vectorosm-tilecreator/BaseClipper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vectorosm-tilecreator/BaseClipper.cpp b/tools/vectorosm-tilecreator/BaseClipper.cpp
index 4d29817..286aa74 100644
--- a/tools/vectorosm-tilecreator/BaseClipper.cpp
+++ b/tools/vectorosm-tilecreator/BaseClipper.cpp
@@ -117,7 +117,7 @@ qreal BaseClipper::tileX2lon( unsigned int x, unsigned int maxTileX )
qreal BaseClipper::tileY2lat( unsigned int y, unsigned int maxTileY )
{
- return gd( M_PI - (2*M_PI * y) / maxTileY ) * (90.0 / 85.0511);
+ return gd(M_PI * (1.0 - (2.0 * y) / maxTileY));
}