[mapcode] 36/56: Release 2.0
Stefan Fritsch
sf at moszumanska.debian.org
Wed Nov 2 23:27:29 UTC 2016
This is an automated email from the git hooks/post-receive script.
sf pushed a commit to annotated tag v2.0.2
in repository mapcode.
commit 86ad120dd37a2d30538c5080fdcd53bbcc1c8c63
Author: Rijn Buve <rijn at buve.nl>
Date: Fri Jul 3 10:49:51 2015 +0200
Release 2.0
---
mapcode_library_c.doc | Bin 130048 -> 95744 bytes
mapcodelib/mapcoder.c | 4 ++--
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/mapcode_library_c.doc b/mapcode_library_c.doc
index 62040aa..cbe57f7 100644
Binary files a/mapcode_library_c.doc and b/mapcode_library_c.doc differ
diff --git a/mapcodelib/mapcoder.c b/mapcodelib/mapcoder.c
index adda0d3..9b9b382 100644
--- a/mapcodelib/mapcoder.c
+++ b/mapcodelib/mapcoder.c
@@ -1878,8 +1878,8 @@ static int encodeLatLonToMapcodes_internal( char **v, Mapcodes *mapcodes, double
if (lat<-90) lat=-90;
if (lat> 90) lat= 90;
- if (lon<-180) lon+=360;
- if (lon>=180) lon-=360;
+ while (lon<-180) lon+=360;
+ while (lon>=180) lon-=360;
#ifndef SUPPORT_HIGH_PRECISION
lat*=1000000; if (lat<0) lat-=0.5; else lat+=0.5;
lon*=1000000; if (lon<0) lon-=0.5; else lon+=0.5;
--
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