[mapcode] 06/18: Reduced output size for --boundaries

Stefan Fritsch sf at moszumanska.debian.org
Wed Nov 2 23:27:20 UTC 2016


This is an automated email from the git hooks/post-receive script.

sf pushed a commit to annotated tag v1.40
in repository mapcode.

commit bf0f8c977a0a900ebe1ae87554e359fc65cd2b57
Author: Rijn Buve <rijn at buve.nl>
Date:   Wed Sep 17 22:57:26 2014 +0200

    Reduced output size for --boundaries
---
 example/mapcode.cpp | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/example/mapcode.cpp b/example/mapcode.cpp
index 4ac8e14..4319a76 100644
--- a/example/mapcode.cpp
+++ b/example/mapcode.cpp
@@ -533,8 +533,8 @@ int main(const int argc, const char** argv)
             generateAndOutputMapcodes(maxLat, maxLon, 0, extraDigits);
 
             // Try JUST inside.
-            double factor = 1.0;
-            for (int j = 1; j < 6; ++j) {
+            double factor = 10.0;
+            for (int j = 1; j < 2; ++j) {
 
                 double d = 1.0 / factor;
                 generateAndOutputMapcodes(minLat + d, minLon + d, 0, extraDigits);
@@ -550,12 +550,6 @@ int main(const int argc, const char** argv)
                 factor = factor * 10.0;
             }
 
-            // Try 22m outside.
-            generateAndOutputMapcodes(minLat - 22, (maxLon - minLon) / 2, 0, extraDigits);
-            generateAndOutputMapcodes(minLat - 22, (maxLon - minLon) / 2, 0, extraDigits);
-            generateAndOutputMapcodes(maxLat + 22, (maxLon - minLon) / 2, 0, extraDigits);
-            generateAndOutputMapcodes(maxLat + 22, (maxLon - minLon) / 2, 0, extraDigits);
-
             if ((i % SHOW_PROGRESS) == 0) {
                 showProgress(i);
             }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/mapcode.git



More information about the Pkg-grass-devel mailing list