ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Hacker on March 22, 2024, 01:18:06 PM

Title: Geotag + geosync + geolocate does not work
Post by: Hacker on March 22, 2024, 01:18:06 PM
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.
Title: Re: Geotag + geosync + geolocate does not work
Post by: Phil Harvey on March 22, 2024, 01:28:06 PM
This feature was added in version 12.79.

- Phil
Title: Re: Geotag + geosync + geolocate does not work
Post by: Hacker on March 22, 2024, 01:30:07 PM
Ahh, that's what I get for using a three-week old version just now ;D
Thanks!
Title: Re: Geotag + geosync + geolocate does not work
Post by: Hacker on March 22, 2024, 04:46:49 PM
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.
Title: Re: Geotag + geosync + geolocate does not work
Post by: Phil Harvey on March 22, 2024, 08:46:51 PM
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
Title: Re: Geotag + geosync + geolocate does not work
Post by: Hacker on March 23, 2024, 06:18:44 AM
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!