Tag images with WPT information in gpx file?

Started by mdm, January 10, 2021, 11:52:21 AM

Previous topic - Next topic

mdm

New user here - I would like to know if it is possible to use the Name field of a WPT in .gpx to tag images.

I'm an underwater photographer and I save .gpx logs of all my boat dives. The WPTs are dive sites (the example obviously is not). So any photos I take underwater while the boat is at the WPT (or not at the next WPT) I want to tag with the name of the WPT. Is it possible to do this in ExifTool?

<wpt lat="35.92316" lon="14.48477"><ele>153</ele><time>2021-01-09T16:24:17Z</time><name><![CDATA[Start: Swieqi]]></name><desc><![CDATA[]]></desc></wpt>

Thanks in advance,

Michael

Phil Harvey

Hi Michael,

Currently this is not possible directly with ExifTool.  But it should be fairly easy to write a script to find the wpt with the closest time then grab the name and use ExifTool to write it to the file.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).