GPS from iPhone jpg files returns duplicate data.

Started by calberga, February 13, 2018, 04:37:17 AM

Previous topic - Next topic

calberga

When I execute:

exiftool -charset cp1252 -T -r -Filename -GPSLatitude -F -L D:\P\Temp\iPhone\ > D:\P\X\GPS-Test.txt

I get output lines like:

IMG_0051.jpg   0.298736   0.298736 N

with two copies of the value, yet when I replace "GPSLatitude" with "gps:all", I get:

IMG_0051.jpg   North   0.298736   East   6.642392   Above Sea Level   668.0739726 m   09:06:35.7   km/h   8.75   True North   26.37769784   True North   26.37769784   2018:01:31   30 m

with only one instance of the latitude value.  (The same applies to Longitude).

How should I request just a single value in the output?


Phil Harvey

You must be using the a config file that enables duplicates.  Add --a to your command to exclude them.

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

calberga

Thank you.  I think that will fix another problem as well!

But, where is the duplicate coming from?  I used ExiftoolGUI to look at all tags, and didn't see any extra.

Phil Harvey

Use this to see both tags and where they are coming from:

exiftool -a -G1 -gpslatitude FILE

Composite tags are derived from the values of other tags.

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

StarGeek

Odds are one is the GPS tag and the other is the Composite tag.

The Composite tag includes directional references while the GPS tag doesn't (the direction reference is a separate tag).  In your case it doesn't seem to be a problem since your references are both north and east, but it would be a problem to rely on just GPS:GPSLatitude/Longitude for images in the western or southern hemisphere.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).