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 (https://exiftool.org/geotag.html#Geolocation) 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.
This feature was added in version 12.79.
- Phil
Ahh, that's what I get for using a three-week old version just now ;D
Thanks!
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.
Yes, you can set either or both or others. Specify as many groups as you want, separated by colons. The table here (https://exiftool.org/geolocation.html#Write) describes all of the possibilities.
- Phil
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!