Skip to content

Seconds in exif gps values for ios mobile pics are always null #733

Answered by dlemstra
Dyloneus asked this question in Help
Discussion options

You must be logged in to vote

I got the correct result with the following calucation:

var value = profile.GetValue(ExifTag.GPSLongitude);

var degrees = value.Value[0].ToDouble();
var minutes = value.Value[1].ToDouble();
var seconds = value.Value[2].ToDouble();
minutes += 60 * (degrees - Math.Floor(degrees));
degrees = Math.Floor(degrees);
seconds += 60 * (minutes - Math.Floor(minutes));
minutes = Math.Floor(minutes);
var pos = $"{degrees} {minutes} {seconds}";

Did not check how to do negative values based on the LatitudeRef

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@Dyloneus
Comment options

@dlemstra
Comment options

@Dyloneus
Comment options

@dlemstra
Comment options

@Dyloneus
Comment options

Answer selected by Dyloneus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants