[Digikam-devel] GPS wrong coordinate conversion?
Arnd Baecker
arnd.baecker at web.de
Fri Sep 8 16:43:13 BST 2006
Hi,
maybe I am wrong, but I think that the conversion in the example
given at
http://docs.kde.org/development/en/extragear-graphics/digikam/using-kapp-camera.html#using-kapp-gps
is not correct:
"""The positional data (e.g. 13.44088333) must be converted into H.MS
format (13.235990) and split into its constituents as shown in the given
example."""
which leads to the entry
add Exif.GPSInfo.GPSLatitude Rational "13/1 23/1 5990/100"
Doesn't 13.44088333 convert to: 13 26 27.18:
int(13.44088333) = 13
int(0.44088333*60) = 26
(0.44088333*60-26) *60 = 27.18
The converter at http://www2.comp.polyu.edu.hk/~04329143d/Location.html
also gives these numbers.
If this is correct, it should read
add Exif.GPSInfo.GPSLatitude Rational "13/1 26/1 2718/100"
The other way round, "13/1 23/1 5990/100"
would correspond to: 13.399972.
Best, Arnd
More information about the Digikam-devel
mailing list