ExifTool Forum

ExifTool => Newbies => Topic started by: Eriksson on November 26, 2014, 04:29:27 PM

Title: Read GPS information
Post by: Eriksson on November 26, 2014, 04:29:27 PM
Is it sufficient to parse GPS information from Composite:GPSPosition or should I parse GPS coordinates from GPS:GPSLatitude, GPS:GPSLatitudeRef, GPS:GPSLongitude and GPS:GPSLongitudeRef?

Are there benefits of using the Composite tags or can I miss any GPS information this way?
Title: Re: Read GPS information
Post by: Phil Harvey on November 26, 2014, 07:09:19 PM
This Composite tag will only be available if both GPSLatitude and GPSLongitude are both available.  But if you don't care about the case where one coordinate is missing, then using GPSPosition is probably fine.

- Phil
Title: Re: Read GPS information
Post by: Eriksson on November 27, 2014, 02:56:44 AM
Thanks.

Can I disregard Composite:GPS*Ref if I use the Composite tags GPSLongitude and GPSLatitude or do I have to factor them in?

I use -n -c %.8f as arguments and I want to be sure that I get correct negative coordinates.
Title: Re: Read GPS information
Post by: Phil Harvey on November 27, 2014, 07:45:53 AM
The Composite:GPS*Ref tags are used only for converting from XMP to EXIF.  The Composite:GPSLatitude/Longitude tags account for the reference direction. (And Composite:GPSPosition will be based on these if they are available.)

- Phil
Title: Re: Read GPS information
Post by: Eriksson on November 27, 2014, 09:26:08 AM
Thanks Phil, that is very helpful.