ExifTool Forum

ExifTool => Newbies => Topic started by: joni1101 on May 09, 2016, 02:29:19 PM

Title: what counts as a gps tag?
Post by: joni1101 on May 09, 2016, 02:29:19 PM
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?
Title: Re: what counts as a gps tag?
Post by: StarGeek on May 09, 2016, 04:46:35 PM
See GPS Tags (http://www.exiftool.org/TagNames/GPS.html)

"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
Title: Re: what counts as a gps tag?
Post by: joni1101 on May 09, 2016, 04:52:51 PM
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?
Title: Re: what counts as a gps tag?
Post by: StarGeek on May 09, 2016, 05:05:02 PM
Hmmm... I do see that in FAQ #3.

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

Title: Re: what counts as a gps tag?
Post by: joni1101 on May 09, 2016, 05:08:42 PM
Thank you kindly on your response.
-time:all works.  -*date gives identical ouput.
while -gps:all doesn't work but gps* does work.
Title: Re: what counts as a gps tag?
Post by: StarGeek on May 09, 2016, 06:03:02 PM
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*.
Title: Re: what counts as a gps tag?
Post by: Phil Harvey on May 10, 2016, 11:10:49 AM
The original intent of the GPS group was for EXIF GPS information.  To get all position information, you should request -location:all.

- Phil