kartaview / upload-scripts

Uploader tools for KartaView
MIT License
61 stars 30 forks source link

Fix Latitude and Longitude EXIF Processing #77

Closed alrs closed 5 years ago

alrs commented 5 years ago

Because ExifTags.GPS_LONGITUDE_REF.value and CardinalDirection.W.value` evaluate to different types, they aren't comparable and longitude is not correctly set to a negative value in the western hemisphere.

The same problem exists for ExifTags.GPS_LATITUDE_REF.value and CardinalDirection.S.value, which is also fixed in this PR.

This fixes https://github.com/openstreetcam/upload-scripts/issues/76

bogdans-telenav commented 5 years ago

Most likely this is also a problem on the altitude reference and speed reference.