Can anyone recommend a Python library(s) that can geotag a photograph with the lat/long coordinates by correlating the timestamp of the photograph to the timestamp of a waypoint within a GPX file?
I am aware of desktop applications like GeoSetter which will do this for you, but I would like to write an automation procedure that I could run on a nightly basis that emulates this process:
- User takes a GPS and a camera into the field.
- User drops a folder onto a server with a GPX file and the photos taken that day.
- A Python process geotags the metadata each photo in the folder with the lat/long coordinates by comparing the photo timestamp to the nearest equivalent timestamp (+/- 30 seconds?) of a waypoint in the GPX file.
- Convert the coordinates found in the photo's metadata to a point in a GIS system.
I have procedures in place for steps 1, 2, & 4 but either need to find a library that already accomplishes step 3 or write my own. Any suggestions?