I want to assign exactly the same geotag to all photos which have GPS coordinates within a predefined area. What I need to know is how to filter/find all GPS locations within a radius of 50 meter within a certain GPS location. I found this post about how to search by proximity to a GPS location, but I don't know how to adjust this command to what I want:https://exiftool.org/forum/index.php/topic,6193.msg30587.html#msg30587 (https://exiftool.org/forum/index.php/topic,6193.msg30587.html#msg30587). I tried also something like this, but it didn't do what I want:
exiftool -if 'abs($gpslatitude# - 52.3728268506806) < 1e-3 and abs($gpslongitude# - 4.89373108651944) < 1e-3'
Any thoughts?
- Fulco
Hi Fulco,
Your command looks good, and works for me:
% exiftool -if 'abs($gpslatitude# - 52.3728268506806) < 1e-3 and abs($gpslongitude# - 4.89373108651944) < 1e-3' -p yes a.jpg
1 files failed condition
% exiftool -gpslatitude=52.3728268506806 -gpslongitude=4.89373108651944 a.jpg
1 image files updated
% exiftool -if 'abs($gpslatitude# - 52.3728268506806) < 1e-3 and abs($gpslongitude# - 4.89373108651944) < 1e-3' -p yes a.jpg
yes
- Phil