Projet

Général

Profil

0001-misc-check-exif-geocoding-data-could-be-decoded-4374.patch

Frédéric Péters, 08 juin 2020 13:36

Télécharger (929 octets)

Voir les différences:

Subject: [PATCH] misc: check exif geocoding data could be decoded (#43749)

 wcs/wf/geolocate.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/wf/geolocate.py
184 184

  
185 185
        if exif_data:
186 186
            gps_info = exif_data.get(0x8825)
187
            if gps_info:
187
            if gps_info and 2 in gps_info and 4 in gps_info:
188 188
                # lat_ref will be N/S, lon_ref wil l be E/W
189 189
                # lat and lon will be degrees/minutes/seconds (value, denominator),
190 190
                # like ((33, 1), (51, 1), (2191, 100))
191
-