Bug 407013 - Incorrectly parses GPS
Summary: Incorrectly parses GPS
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Geolocation-Engine (show other bugs)
Version: 6.2.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-28 12:26 UTC by aik
Modified: 2023-10-12 05:26 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Problematic image (1.46 MB, image/jpeg)
2019-04-28 12:26 UTC, aik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aik 2019-04-28 12:26:32 UTC
Created attachment 119691 [details]
Problematic image

SUMMARY

GPS from panoramas captured by Android phone ASUS Zenfone3 are parsed incorrectly. exiftool shows correct results:

[aik@aikyoga Pictures]$ exiftool -json -GPSLatitude -GPSLatitudeRef -GPSLongitude -GPSLongitudeRef -GPSPosition nz19-3/sv/P_20190422_121420_PN.jpg 
[{
  "SourceFile": "nz19-3/sv/P_20190422_121420_PN.jpg",
  "GPSLatitude": "42 deg 17' 45.98\" S",
  "GPSLatitudeRef": "South",
  "GPSLongitude": "170 deg 10' 4.46\" E",
  "GPSLongitudeRef": "East",
  "GPSPosition": "42 deg 17' 45.98\" S, 170 deg 10' 4.46\" E"
}]

Interestingly only North-South is screwed, East-West is not. Non-panoramic images are shown correctly.

STEPS TO REPRODUCE
Open attached image. Click "map" in digikam.

OBSERVED RESULT

A point in the Pacific ocean in the norhern hemisphere.

EXPECTED RESULT

New Zealand.

SOFTWARE/OS VERSIONS
Fedora 29
Gnome3
digikam 5.9.0
Comment 1 caulier.gilles 2019-04-28 12:33:43 UTC
digiKam 6.2.0 and Exiv2 0.27 : GPS metadata from exif are here :

File name: P_20190422_121420_PN.jpg (Standard EXIF Tags)

>>> Global Positioning System <<<

GPS Altitude : 737 m
GPS Altitude Reference : Above sea level
GPS Date Stamp : 2019:04:22
GPS Latitude : 0.0000000deg 42' 14.017"
GPS Latitude Reference : South
GPS Longitude : 170deg 10' 4.458"
GPS Longitude Reference : East

But it sound like these info are not accepted by geolocation parser...

Gilles Caulier
Comment 2 Maik Qualmann 2019-04-28 12:58:43 UTC
When I upload the photo to Google Photos, its position is identical to that of digiKam. And I would already consider Google as a reference when parsing metadata. Interesting that Exiftool comes to another result.

Maik
Comment 3 aik 2019-04-28 22:19:00 UTC
Rewriting -GPSLatitudeRef=South by exiftool fixed the problem. Weird.
Comment 4 caulier.gilles 2020-07-31 12:43:55 UTC
digiKam 7.0.0 stable release is now published:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Best Regards

Gilles Caulier
Comment 5 caulier.gilles 2022-01-13 05:33:57 UTC
Hi Aik and happy new year,

Can you reproduce the problem with digiKam 7.5.0 pre-release bundle available here :

https://files.kde.org/digikam/

Best regards

Gilles Caulier
Comment 6 caulier.gilles 2023-04-29 09:58:08 UTC
@aik

digiKam 8.0.0 is out. This entry still valid with this release ?

Best regards

Gilles Caulier
Comment 7 caulier.gilles 2023-10-12 05:26:33 UTC
Aik,

What's about this file using current 8.2.0 AppImage Linux bundle ? It's
reproducible ?

https://files.kde.org/digikam/

Thanks in advance

Gilles Caulier