From b584196e67022626fd42d3818c7070e370d3ea05 Mon Sep 17 00:00:00 2001 From: qetu3790 Date: Fri, 12 Nov 2021 09:12:45 +0800 Subject: [PATCH] Change MERCATOR_MAX to right value. MERCATOR_MAX should be M_PI*R. When R is 6372797.560856, the MERCATOR_MAX is 20020734.00. --- src/common/geo/geohash_helper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/geo/geohash_helper.cpp b/src/common/geo/geohash_helper.cpp index 8194545c..454807e5 100644 --- a/src/common/geo/geohash_helper.cpp +++ b/src/common/geo/geohash_helper.cpp @@ -47,7 +47,7 @@ namespace ardb /// @brief Earth's quatratic mean radius for WGS-84 static const double EARTH_RADIUS_IN_METERS = 6372797.560856; - static const double MERCATOR_MAX = 20037726.37; + static const double MERCATOR_MAX = 20020734.00; //static const double MERCATOR_MIN = -20037726.37; static inline double deg_rad(double ang)