From e57c3a66b792588d2b3dfb592262bc87c802e4ea Mon Sep 17 00:00:00 2001
From: warp <kuno@frob.nl>
Date: Sun, 26 Aug 2012 22:12:25 +0200
Subject: [PATCH] Fix for issue #491, invert latitude when neccesary.
---
mediagoblin/tools/exif.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/mediagoblin/tools/exif.py b/mediagoblin/tools/exif.py
index 98c3de2..543484c 100644
a
|
b
|
def get_gps_data(tags):
|
171 | 171 | + (float(v[2].num) / float(v[2].den) / (60 * 60)) |
172 | 172 | )(dat.values) |
173 | 173 | |
| 174 | if tags['GPS GPSLatitudeRef'].values == 'S': |
| 175 | gps_data['latitude'] /= -1 |
| 176 | |
174 | 177 | if tags['GPS GPSLongitudeRef'].values == 'W': |
175 | 178 | gps_data['longitude'] /= -1 |
176 | 179 | |