Fix for issue #491, invert latitude when neccesary.
authorwarp <kuno@frob.nl>
Sun, 26 Aug 2012 20:12:25 +0000 (22:12 +0200)
committerJoar Wandborg <git@wandborg.com>
Mon, 27 Aug 2012 13:55:43 +0000 (15:55 +0200)
mediagoblin/tools/exif.py

index 98c3de276b59a1c0a51da6d1b14279974d235870..543484c92adb66eba47a332cb0736a8b0df47198 100644 (file)
@@ -171,6 +171,9 @@ def get_gps_data(tags):
                     + (float(v[2].num) / float(v[2].den) / (60 * 60))
                 )(dat.values)
 
+        if tags['GPS GPSLatitudeRef'].values == 'S':
+            gps_data['latitude'] /= -1
+
         if tags['GPS GPSLongitudeRef'].values == 'W':
             gps_data['longitude'] /= -1