Android Question Exif Data showing strange numbers

Smee

Well-Known Member
Licensed User
Longtime User
Hi all

I am using Andrew Graham's code and I read through the old thread that showed some strange outputs

I also have strange outputs but different to those listed in the thread

I am getting

Latitude data as 51/1,40/1,23428/1000
Longitude Data as 116/1,26/1,59454

I THINK the data should be interpreted as

51 40 23.428
-116 26 59.454

using the divisors following the numbers, is this correct ?

And to save me re-inventing the wheel and I am correct is there a snippet that takes the output and gives the latitude and longitude expressed as single figures?

Thanks
 

Smee

Well-Known Member
Licensed User
Longtime User
Thanks Erel
the code is from the JpegUtilsDemo

B4X:
temp = exif.getAttribute(exif.TAG_GPS_LATITUDE_REF)
    msg.Append("Lat Ref : ").Append(temp).Append(CRLF)
    
    temp = exif.getAttribute(exif.TAG_GPS_LONGITUDE_REF)
    msg.Append("Lon Ref : ").Append(temp).Append(CRLF)

And this is the actual output
51/1,40/1,23428/1000
116/1,26/1,59454/1000
 
Upvote 0
Top