imageexifgeotaggingpyexiv2

Exif Direction of Picture


I have a bunch of Geotagged pictures that I'm accessing in python using pyexiv2. It's working great except I don't understand what the "GPSImgDirection" value is giving. Basically, it's two great big numbers, for example:

2147483647/8613474

What does that mean? I think it's a "rational" data type. What does that mean? How can I turn the number into something people could understand, such as "5 degrees East of North"?

Thanks! Alex


Solution

  • Mark correctly informed me that this is just a big fraction. So:

    2147483647/8613474 = 249.3 degrees

    So starting from due North as 0 degrees and going clockwise, it's saying it's roughly SW or W.