Confused about setting: -gpslatitude -gpslongitude

Started by HBox, May 02, 2014, 07:07:02 AM

Previous topic - Next topic

HBox

If I try the following I get a negative longitude, even that I did not set it.

exiftool -gpslatitude=59 -gpslongitude=5 "FILE.JPG" -n
    1 image files updated

exiftool -gpslatitude -gpslongitude "FILE.JPG" -n
GPS Latitude                    : 59
GPS Longitude                   : -5

Phil Harvey

This is because you are probably reading back the Composite tag.  Try this:

exiftool -a -G1 -gpslatitude -gpslongitude "FILE.JPG" -n

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

HBox

Okay now I am getting:

[GPS]           GPS Latitude                    : 59
[Composite]     GPS Latitude                    : 59
[GPS]           GPS Longitude                   : 5
[Composite]     GPS Longitude                   : -5

Now  I am even more confused. Shouldnt those values be the same?

Phil Harvey

The Composite GPSLatitude tag combines GPS:GPSLatitude and GPS:GPSLatitudeRef into a single value.  See the Composite tags documenation.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).