misc: check exif geocoding data could be decoded (#43749)
This commit is contained in:
parent
c71662ec46
commit
e9de9d11d5
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue