[Digikam-devel] [digikam] [Bug 326406] A picture without geolocalisation is localized in North Pole

Nicofo nicofo at tuxfamily.org
Mon Jun 22 21:42:58 BST 2015


https://bugs.kde.org/show_bug.cgi?id=326406

--- Comment #14 from Nicofo <nicofo at tuxfamily.org> ---
Hi Gilles,

I come back on this bug and reply to your last message with new thoughts:

To summarize, I would consider GPS info is not valid if one of the following
condition is met:
- tag "GPS Latitude" or "GPS Longitude" is not present
> This is already done in libkexiv2.
As I said my previous comment, this is not true in my case. Can you check on
your side ? Using digikam 4.10, the picture from comment #6 [1] (without "GPS
Latitude" tag) appears to be geolocalised in Equator ...

- tag "GPS Date Stamp" = 0000:00:00
> Well for this condition, i have plenty of valid geolocalized images without
> this tag. I collected these files from digiKam users in time... So we cannot
> use this one.
OK, very well. If I understand you well, you have pictures that DOES NOT
contain the tag "GPS Date Stamp" at all but are valid geolocalised ? What I say
is different:
IF tag "GPS Date Stamp" exists BUT is null (0000:00:00), THEN the
geolocalisation has failed and must be discarded.
OTHER SOLUTION, probably far easier : in this case (when GPS is active but
geolocalisation not done -> digikam localises it in North Pole): the GPS
Latitude/Longitude is 16777215°16777215'16777215"150 [note that 16777215 is
1111 1111 1111 1111 in binary] which is an impossible value for latitude and
longitude:
- latitude range is 0 (equator) to 90 (pole)
- longitude range is -180 to 180
So if out of these ranges -> must be discarded ! Easy no ? ;)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Digikam-devel mailing list