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.
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
andCardinalDirection.S.value
, which is also fixed in this PR.This fixes https://github.com/openstreetcam/upload-scripts/issues/76