projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47cdc02
)
Fix for issue #491, invert latitude when neccesary.
author
warp
<kuno@frob.nl>
Sun, 26 Aug 2012 20:12:25 +0000
(22:12 +0200)
committer
Joar Wandborg
<git@wandborg.com>
Mon, 27 Aug 2012 13:55:43 +0000
(15:55 +0200)
mediagoblin/tools/exif.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/tools/exif.py
b/mediagoblin/tools/exif.py
index 98c3de276b59a1c0a51da6d1b14279974d235870..543484c92adb66eba47a332cb0736a8b0df47198 100644
(file)
--- a/
mediagoblin/tools/exif.py
+++ b/
mediagoblin/tools/exif.py
@@
-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