Fix for issue #491, invert latitude when neccesary.

This commit is contained in:
warp
2012-08-26 22:12:25 +02:00
committed by Joar Wandborg
parent 47cdc020a1
commit bc875dc7cc

View 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