From e083aa1a30083f0daa77c112bb2117a8f322d630 Mon Sep 17 00:00:00 2001 From: Russell Porter Date: Sat, 21 May 2022 13:26:54 +0200 Subject: [PATCH] Fix exported photos are incorrectly geotagged --- INaturalistIOS/Extensions/CLLocation+EXIFGPSDictionary.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INaturalistIOS/Extensions/CLLocation+EXIFGPSDictionary.m b/INaturalistIOS/Extensions/CLLocation+EXIFGPSDictionary.m index 109660a1..49e6ce73 100644 --- a/INaturalistIOS/Extensions/CLLocation+EXIFGPSDictionary.m +++ b/INaturalistIOS/Extensions/CLLocation+EXIFGPSDictionary.m @@ -16,7 +16,7 @@ - (NSDictionary *)inat_GPSDictionary { gps[(NSString *)kCGImagePropertyGPSLatitude] = @(fabs(self.coordinate.latitude)); gps[(NSString *)kCGImagePropertyGPSLatitudeRef] = self.coordinate.latitude > 0 ? @"N" : @"S"; gps[(NSString *)kCGImagePropertyGPSLongitude] = @(fabs(self.coordinate.longitude)); - gps[(NSString *)kCGImagePropertyGPSLongitudeRef] = self.coordinate.latitude > 0 ? @"W" : @"E"; + gps[(NSString *)kCGImagePropertyGPSLongitudeRef] = self.coordinate.longitude > 0 ? @"E" : @"W"; if (!isnan(self.altitude)) { gps[(NSString *)kCGImagePropertyGPSAltitude] = @(fabs(self.altitude));