I have recently switched GPS data loggers from my trusty GlobalSat DG-100 to a Locosys BGT-31. The main reason for the switch was so that I could use external memory cards to store the data on long trips. I am very impressed with the BGT-31, but it isn’t without its challenges. The main issue I have with it is that it either creates a binary file that you must read with their software, or you get NMEA text files. In order to minimize losses in the event of file corruption, I keep the log files to a maximum of 128KB. This can result in many files over the course of a long trip.
In order to geotag my photos from a trip I prefer to use GPicSync, which is easier to use with a single GPX input file. In order to create that single GPX file from the many individual NMEA text files, I use GPSBabel. GPSBabel is great, but there is no native way that I have found to easily select a bunch of input files from the command line, so I wanted something to automate it for me. I finally gave up finding an existing tool to do this, so I wrote a little batch script to do it for me. You can download a zip file containing the script here. Basically, here’s how I use it:
Place the batch file into your GPSbabel directory (I assumed
C:\Program Files\GPSbabel\). Add the registry key to your registry at
HKEY_CLASSES_ROOT\Folder\shell\Process GPS Files\command. You will now have a right-click context menu option titled “Process GPS Files” when you right-click on a folder. Right-click on the folder containing your NMEA GPS files, select the “Process GPS Files” menu option, enter your desired output filename, and hit enter. This will produce a GPX file in the parent directory of the folder you selected. Use the GPX file as input into GPicSync, and as a single backup file. You can also use the GPX file to create Google Earth KML files, or Google Maps files.