-gps:all what am I missing?

Started by letterman, February 22, 2023, 02:45:32 PM

Previous topic - Next topic

letterman

what am I missing with the "-gps:all" syntax not catching "GPS Latitude" "GPS Longitude" "GPS Altitude"?   Are my files "corrupt" with some tags not written in the correct group? 
(this is all on windows using latest exiftool.exe, but had this issue for at lest a year.)

exiftool -gps:all testwgps.jpg

GPS Version ID                  : 2.3.0.0
GPS Latitude Ref                : North
GPS Longitude Ref               : West
GPS Altitude Ref                : Below Sea Level
GPS Map Datum                   : WGS 198

but no latitude/longitude unless I use  "-gps*"  instead of "-gps:all"

exiftool -gps* testwgps.jpg

GPS Version ID                  : 2.3.0.0
GPS Latitude Ref                : North
GPS Longitude Ref               : West
GPS Altitude Ref                : Below Sea Level
GPS Map Datum                   : WGS 198
GPS Altitude                    : 26.8 m Below Sea Level
GPS Latitude                    : 12 deg 35' 12.31" N
GPS Longitude                   : 81 deg 42' 9.16" W
GPS Position                    : 12 deg 35' 12.31" N, 81 deg 42' 9.16" W

but removing with "-gps:all=" works... (all GPS tags removed as expected)

exiftool -gps:all=  testwgps.jpg
    1 image files updated

exiftool -gps*  testwgps.jpg
(no output)
exiftool -gps:all testwgps.jpg
(no output)


also, "-location:all" includes all the GPS tags:

exiftool -location:all testwgps.jpg
GPS Version ID                  : 2.3.0.0
GPS Latitude Ref                : North
GPS Longitude Ref               : West
GPS Altitude Ref                : Below Sea Level
GPS Map Datum                   : WGS 198
Sub-location                    : Aeropuerto Internacional Gustavo
Province-State                  : San Andreas
Country-Primary Location Name   : Colombia
Country-Primary Location Code   : CO
City                            : San Andreas
State                           : San Andreas
Country                         : Colombia
Country Code                    : CO
Location                        : Aeropuerto Internacional Gustavo Rojas Pini

GPS Altitude                    : 26.8 m Below Sea Level
GPS Latitude                    : 12 deg 35' 12.31" N
GPS Longitude                   : 81 deg 42' 9.16" W
GPS Position                    : 12 deg 35' 12.31" N, 81 deg 42' 9.16" W


(my "GPS Latitude" etc. tags are in the "Location" group instead of the correct "GPS" group, but are included when using -gps:all= to remove?)

If my files are "corrupt" is there a quick  "-if test" and fix to apply?)

Thanks for any hints!

StarGeek

This is FAQ #3.  The Composite GPS have priority because they are created last.  And from FAQ #3
     When duplicate tags exist, only one is extracted unless the -a option is used.

Because you are specifying to list only the GPS group, you aren't seeing the Composite tags listed.

Using the FAQ #3 command and using a wild card to show all tags starting with GPS gives the following results
C:\>exiftool -G1 -a -s -gps* Y:\!temp\dd\testwgps.jpg
[GPS]           GPSVersionID                    : 2.3.0.0
[GPS]           GPSLatitudeRef                  : North
[GPS]           GPSLatitude                     : 12 deg 35' 12.31"
[GPS]           GPSLongitudeRef                 : West
[GPS]           GPSLongitude                    : 81 deg 42' 9.16"
[GPS]           GPSAltitudeRef                  : Below Sea Level
[GPS]           GPSAltitude                     : 26.86 m
[GPS]           GPSMapDatum                     : WGS 198
[Composite]     GPSAltitude                     : 26.8 m Below Sea Level
[Composite]     GPSLatitude                     : 12 deg 35' 12.31" N
[Composite]     GPSLongitude                    : 81 deg 42' 9.16" W
[Composite]     GPSPosition                     : 12 deg 35' 12.31" N, 81 deg 42' 9.16" W

Another thing to remember is that the GPS group only consists of the GPS tags that are in the EXIF block.  Any GPS tags that may be in the XMP group or as part of an embedded GPS track in a video will not be shown when using -GPS:All.
"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