ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: nquental on May 07, 2024, 02:51:30 AM

Title: Geotagging files based on a track file
Post by: nquental on May 07, 2024, 02:51:30 AM
Hello!
I've created a single track file for 20 thousand image that span across hundreds of folders. My idea is now to geotag also thousands of files in those folders that, for one reason or another, are missing GPS coordinates.

My idea is to use something like:

exiftool -if 'not $GPS:all' -geotag track.gpx -r "TOP DIR" -api GeoMaxExtSecs=100000 -api GeoMaxIntSecs=100000

However, I'd like to add a condition to ensure that only existing geotags in folder can be used to geotag files with missing coordinates in that same folder. This is to avoid possibly crazy results which would be also difficult to spot and correct manually.

Is there any possibility to achieve this in such automated manner?

Thanks in advance
Nuno
Title: Re: Geotagging files based on a track file
Post by: StarGeek on May 07, 2024, 10:55:47 AM
No, I do not believe so.

That would require exiftool to scan all the files in the folder to find the first and last one that had coordinates before doing anything else.  Also, the various geotag features don't have any options to limit processing beyond the -api options listed.
Title: Re: Geotagging files based on a track file
Post by: nquental on May 17, 2024, 06:38:44 PM
Thank you, I think I can also do without, let's hope it will go well.