I don't see any GPS info in your example. Here's what I'm trying:

public override void FinishedPickingImage (UIImagePickerController picker,
UIImage image, NSDictionary editingInfo)
                {
                        var mediaUrlKey = new 
NSString("UIImagePickerControllerReferenceURL");
                        var mediaPath = (NSUrl) 
editingInfo.ObjectForKey(mediaUrlKey);
                        ALAssetsLibrary al = new ALAssetsLibrary();
                                al.AssetForUrl(keyInfo, (asset) => {
                                        if(asset.Location != null)
                                        {
                                                lat = 
asset.Location.Coordinate.Latitude.ToString();
                                                lon = 
asset.Location.Coordinate.Longitude.ToString();
                                        }
                                }, (error) => {
                                        Log.WriteLog("Error in GetGPS");
                                });
        }

I get the Asset URL but no GPS data. I know it's there because when I get
the image using the AssetLibrary block to get the entire album, the same
Location extraction code works.

Thanks,
Rick



--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/Retrieving-EXIF-GPS-data-from-UIImage-tp4656547p4656559.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to