[Kde-imaging] [Bug 140297] GPS kipi plugin truncates input coordinates, introducing inacuracy

Arnd Baecker arnd.baecker at web.de
Wed Mar 7 22:30:51 CET 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=140297         




------- Additional Comments From arnd.baecker web de  2007-03-07 22:30 -------
Created an attachment (id=19906)
 --> (http://bugs.kde.org/attachment.cgi?id=19906&action=view)
patch to kexiv2.cpp to avoid the GPS accuracy loss

I think there is a really simple fix: 
because, as Andreas wrote in 
http://mail.kde.org/pipermail/digikam-devel/2006-November/008713.html
"""
In the Exif field, longitude and latitude values must be encoded as 
three rationals (two 32bit integers each): the number of degrees, 
minutes and seconds. Fractions are obviously possible for all three and 
one specific value can be encoded in multiple ways.
"""
one may just use a larger denominator
in libkexiv2/kexiv2.cpp, KExiv2::setGPSInfo.
With 1000000 as denominator, using 
(51.123456789 , 13.987654321 ) as input
in the "Edit geographical coordinates" gives
(51.1234567833, 13.9876543167).
This should be sufficiently many valid digits.

Attached is a corresponding patch.


More information about the Kde-imaging mailing list