Quote:
Originally Posted by haniar
Hi,
I would like to read the GPS data (lat / lon) for a picture that has been selected by the user using UIImagePickerController.
Selecting the picture works but how can I access the geo data?
I have looked at iphone-exif ( iphone-exif - Project Hosting on Google Code) project but it does not seem to work with UIImage.
Any suggestions
Thanks
|
I don't think you can, seems like the raw image in the private folder retains the exif but not after going through the imagepicker. Unfortunately if you try to access the private folder, almost for sure your app is going to get rejected.
My solution was to track the location info seperately storing the image in a seperate database. For me this was cleaner than playing with the exif data.
I suppose if your app is for add-hoc only you could use the private api, but anything go to the app store I wouldn't.
I think the exif-iphone project was intended to add the info back in, but that project is gpl license, which means you can't use it in your commerical app.