]> git.street.me.uk Git - andy/viking.git/commit
SF Bugs#22: Fix changing coordinates when saving and exporting
authorRob Norris <rw_norris@hotmail.com>
Sat, 23 Apr 2016 11:08:28 +0000 (12:08 +0100)
committerRob Norris <rw_norris@hotmail.com>
Sun, 24 Apr 2016 23:13:21 +0000 (00:13 +0100)
commite778b260c460c218a8efa27c178219cccf731452
treecfb7f2cd8cc1e1cafba2a771e4ccd3733353cc78
parent45680629deb6de2ab0bf69f226e84e72afdbe543
SF Bugs#22: Fix changing coordinates when saving and exporting

Use improved double to string conversion to remove extra digits due to
 excessive string length output which previously 'preserved' the imprecision
 of the internal floating point versus the string type number input.

This is the fast and accurate double to string conversion based on Florian Loitsch's Grisu-algorithm.
Written by Andreas Samoljuk under the MIT License.

Thus the numbers saved are now guaranteed to be same read in
 (if the input is already in the shortest string format).

As a bonus this can reduce the size of a typical .vik file (with many points)
 by 5% to 10%.
src/Makefile.am
src/coords.c
src/coords.h
src/gpspoint.c
src/gpx.c
src/misc/fpconv-license.txt [new file with mode: 0644]
src/misc/fpconv.c [new file with mode: 0644]
src/misc/fpconv.h [new file with mode: 0644]