Skip to content

Commit

Permalink
Fix exported photos are incorrectly geotagged
Browse files Browse the repository at this point in the history
  • Loading branch information
russellporter committed Oct 29, 2022
1 parent 3a48b60 commit e083aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion INaturalistIOS/Extensions/CLLocation+EXIFGPSDictionary.m
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit e083aa1

Please sign in to comment.