Understanding of GPS-tags

Started by linuxuser, June 28, 2017, 10:28:03 AM

Previous topic - Next topic

linuxuser

I am debugging my bash-script and wonder why nothing is written with this simple code:

exiftool -q -q -overwrite_original -GPS:GPSAltitude="3333" "$NEWNAME"
exiftool -G -H -a -n "$NEWNAME" | grep -i altit



[XMP]                - GPS Altitude                    : 1000
[XMP]                - GPS Altitude Ref                : 0
[Composite]          - GPS Altitude                    : 1000

You see there is no altitude with 3333. It works eg to write another city tag with xmp and iptc. If this makes sense is another question.

Phil Harvey

There are many reasons why this could happen.  Try running the first command without -q -q to look at the messages from ExifTool to see what is happening.  If the file is not being written, check FAQ 23.

- 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 ($).

StarGeek

#2
What is the file type?  If it is a video file, you will need to  write XMP tag, not GPS.

edit: To expand on this, now that I'm not on mobile, the GPS group writes to the tags that are part of the EXIF standard.  Most video files do not contain EXIF data.  Exiftool can write to the XMP gps tags in video files and your output only contains XMP tags, which is why I questioned if it was a video file.  For ease of use, you might just write to GPSAltitude and let exiftool decide which tag is appropriate for the file.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype