Geotagging files based on a track file

Started by nquental, May 07, 2024, 02:51:30 AM

Previous topic - Next topic

nquental

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

StarGeek

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.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

nquental

Thank you, I think I can also do without, let's hope it will go well.