Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added altitude and accuracy to location metadata

  • Loading branch information...
commit 1dc636c871d04c8ab0380129f51a3a265c99cd53 1 parent 5168177
@markpmiles markpmiles authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  GusUtils/NSMutableDictionary+ImageMetadata.m
View
2  GusUtils/NSMutableDictionary+ImageMetadata.m
@@ -117,6 +117,8 @@ - (void)setLocation:(CLLocation *)location {
[locDict setObject:[NSNumber numberWithFloat:exifLatitude] forKey:(NSString*)kCGImagePropertyGPSLatitude];
[locDict setObject:lngRef forKey:(NSString*)kCGImagePropertyGPSLongitudeRef];
[locDict setObject:[NSNumber numberWithFloat:exifLongitude] forKey:(NSString*)kCGImagePropertyGPSLongitude];
+ [locDict setObject:[NSNumber numberWithFloat:location.horizontalAccuracy] forKey:(NSString*)kCGImagePropertyGPSDOP];
+ [locDict setObject:[NSNumber numberWithFloat:location.altitude] forKey:(NSString*)kCGImagePropertyGPSAltitude];
[self setObject:locDict forKey:(NSString*)kCGImagePropertyGPSDictionary];
[locDict release];
Please sign in to comment.
Something went wrong with that request. Please try again.