Geotag + geosync + geolocate does not work

Started by Hacker, March 22, 2024, 01:18:06 PM

Previous topic - Next topic

Hacker

Hi *.*,
exiftool 12.78 under Windows 10 x64.
The following works, it correctly adds GPS tags and location names:
exiftool.exe -geotag "log.gpx" -geosync=+4:0:0 -progress -overwrite_original -preserve *.ARW
exiftool.exe "-iptc:geolocate<gpsposition" -progress -overwrite_original -preserve *.ARW


Based on Writing Geolocation Tags while Geotagging the following should also work, however, it does not - while it correctly adds GPS tags, it does not add location names:
exiftool.exe -geotag "log.gpx" -geosync=+4:0:0 -geolocate=geotag -progress -overwrite_original -preserve *.ARW

What am I doing wrong? Is geolocating at the same time as geotagging using a time offset not supported?
Thank you.

Phil Harvey

This feature was added in version 12.79.

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

Hacker

Ahh, that's what I get for using a three-week old version just now ;D
Thanks!

Hacker

I have now tested this with 12.80 and found that -geolocate=geotag sets XMP tags and "-iptc:geolocate<gpsposition" sets IPTC tags. Is one perhaps preferred over the other? Can I perhaps set both at the same time? My current image viewer seems to be able to better handle IPTC tags, but I guess for compatibility it would be best to set both?
Thanks.

Phil Harvey

Yes, you can set either or both or others.  Specify as many groups as you want, separated by colons.  The table here describes all of the possibilities.

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

Hacker

OK, so, I've finally arrived at the following command which seems to do everything I need:
exiftool.exe -geotag "*.gpx" -geosync=+4:0:0 -IPTC:XMP:geolocate=geotag -progress -overwrite_original -preserve *.ARW
Thank you very much!