misc: check exif geocoding data could be decoded (#43749)

This commit is contained in:
Frédéric Péters 2020-06-08 13:06:17 +02:00
parent c71662ec46
commit e9de9d11d5
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ class GeolocateWorkflowStatusItem(WorkflowStatusItem):
if exif_data:
gps_info = exif_data.get(0x8825)
if gps_info:
if gps_info and 2 in gps_info and 4 in gps_info:
# lat_ref will be N/S, lon_ref wil l be E/W
# lat and lon will be degrees/minutes/seconds (value, denominator),
# like ((33, 1), (51, 1), (2191, 100))