Main Menu

what counts as a gps tag?

Started by joni1101, May 09, 2016, 02:29:19 PM

Previous topic - Next topic

joni1101

consider the output of
exiftool -a -s -G1 -n 20160509_082447.mp4 | grep -i gps

jojo-> exiftool -a -s -G1 -n 20160509_082447.mp4 | grep -i gps
[QuickTime]     GPSCoordinates                  : 49.2658 -123.1239
[Composite]     GPSLatitude                     : 49.2658
[Composite]     GPSLongitude                    : -123.1239
[Composite]     GPSPosition                     : 49.2658 -123.1239

yet
exiftool -a -s -G1 -gps:all -n 20160509_082447.mp4
produces -- no output --

What am I missing?

StarGeek

See GPS Tags

"These GPS tags are part of the EXIF standard, and are stored in a separate IFD within the EXIF information."

So it will only bring up EXIF gps tags.

FYI, rather than piping through grep, you can use the Asterisk as a wildcard to filter tags directly.  For example:
exiftool -gps* -a -s -G1 -n 20160509_082447.mp4
"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

joni1101

Your suggestion of
exiftool -a -s -gps* filename
works.
exiftool -a -s -gps:all filename
does not work.

But -gps:all is in the faq. Is that an error?

StarGeek

Hmmm... I do see that in FAQ #3.

You'll probably have to wait for a response from Phil on this.

"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

joni1101

Thank you kindly on your response.
-time:all works.  -*date gives identical ouput.
while -gps:all doesn't work but gps* does work.

StarGeek

Quote from: joni1101 on May 09, 2016, 05:08:42 PM
-time:all works.  -*date gives identical ouput.
I just wanted to point out that, at least with images, there will be times these won't be the same.  Some tags will have only time in the name (IPTC:TimeCreated, NIKON:TimeZone) or date may come first (DateTimeOriginal, DateCreated).  If you need all the time data, Time:all is what you want.  Also, you can put the wildcard anywhere, even multiple ones, such as -*Date*.
"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

Phil Harvey

The original intent of the GPS group was for EXIF GPS information.  To get all position information, you should request -location:all.

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