Processing a batch of images against a GPS track log

Started by Archive, May 12, 2010, 08:53:51 AM

Previous topic - Next topic

Archive

[Originally posted by brett on 2005-10-22 09:56:41-07]

I use OziExplorer to import track logs to my PC from my Garmin GPS unit. OziExplorer then saves these as a "plt" text file, an extract from which is included below. Basically, each row has the latitude, longitude, altitude, and the timestamp. I don't know whether ExifTool supports this, it may do, but basically I want to choose a text file containing track log data, and a batch (directory) of images, and have ExifTool write the relevant GPS lat, lon and alt into each image.
Probably would be easiest to find the entry which is the closest match for the Exif date, although you could get tricky and interpolate the position if the time of the photo was half-way between two adjacent timestamps in the track log. I probably wouldn't try to support specific track log formats, just set up an Exiftool format for a track log text file, and users can massage their track logs (in whatever format) using Excel (for example) to get them into this format.

OziExplorer Track Point File Version 2.1

WGS 84

Altitude is in Feet

Reserved 3

0,2,255,ACTIVE LOG                         ,0,0,2,8421376

88

 -33.612350, 150.811190,1,   91.9,38647.2284954, 22-Oct-05, 5:29:02 AM

 -33.612370, 150.811170,0,   63.5,38647.2285764, 22-Oct-05, 5:29:09 AM

 -33.612460, 150.811280,0,   74.6,38647.2287616, 22-Oct-05, 5:29:25 AM

 -33.612610, 150.811450,0,   69.8,38647.2289815, 22-Oct-05, 5:29:44 AM

 -33.612820, 150.811710,0,   60.4,38647.2293403, 22-Oct-05, 5:30:15 AM

 -33.612990, 150.811860,0,   60.4,38647.2295833, 22-Oct-05, 5:30:36 AM

 -33.613100, 150.811970,0,   58.8,38647.2298148, 22-Oct-05, 5:30:56 AM

 -33.613160, 150.811990,0,   57.2,38647.2298958, 22-Oct-05, 5:31:03 AM

 -33.613190, 150.812010,0,   57.2,38647.2299190, 22-Oct-05, 5:31:05 AM

 -33.613270, 150.812050,0,   60.4,38647.2301852, 22-Oct-05, 5:31:28 AM

 -33.613440, 150.812090,0,   54.1,38647.2304051, 22-Oct-05, 5:31:47 AM

 -33.613510, 150.812140,0,   52.5,38647.2304745, 22-Oct-05, 5:31:53 AM

 -33.613550, 150.812140,0,   54.1,38647.2305208, 22-Oct-05, 5:31:57 AM

 -33.613770, 150.812180,0,   49.3,38647.2307407, 22-Oct-05, 5:32:16 AM

 -33.613920, 150.812160,0,   49.3,38647.2310301, 22-Oct-05, 5:32:41 AM

Archive

[Originally posted by exiftool on 2005-10-22 17:23:29-07]

Hi Brett,

Andreas (userid aneumann in this forum) has developed a script to do exactly this using ExifTool to write the coordinates into the file.  His GPS track files are slightly different format, but I'm sure his script could be modified to work with a simple format file like yours.  Hopefully he is reading this forum.  If so he may respond.  He mentioned in his last post that he would make the script available for download when it was complete.

Archive

[Originally posted by aneumann on 2005-10-29 19:03:39-07]

Hi,

sorry my late response.

I published the script now at http://www.carto.net/projects/photoTools/gpsPhoto/ - feedback and testers are welcome.

I wanted to create a .exe file for Windows using ActiveStates tool to generate executables on Windows, however, it seems the Image-ExifTool module provided by ActiveState is out of date and still contains old bugs, incl. my problem I previously had with the NEF files. Therefore I am still looking for a solution to get a up-to-date ActiveState Image-ExifTool module for ppm installation.

Anyone knows how to get ActiveState to update this module?

Thanks for any ideas and all the best,
Andreas

Archive

[Originally posted by exiftool on 2005-10-29 21:57:05-07]

I'm not sure why you need the Activestate version of ExifTool.  The only difference may be in where it is installed, but the content should be the same as any other ExifTool distribution.  So just install whatever version you want over the old ActiveState installation and it should work fine for you.  Shouldn't it?