GPSBabel/Convert tracelogs to GPX

From OpenStreetMap Wiki
Jump to navigation Jump to search

GPSBabel can extract data from GPS receivers or can convert files of other formats.

Under Windows

  1. First you need to download GPSBabel, which can be downloaded from its official site.
  2. Start the installer and install.
  3. Start GPSBabel
  4. In Input select your saved track type and browse your track file.
  5. In Output select GPX XML and a destination file.
  6. Press "let's go".

Under Mac OS X

Install

  1. Download GPSBabel on the official website in the downloads section. In August 2009, the downloadable .dmg image is both for PPC & Intel Macs (universal) and runs on versions 10.4.x (Tiger) and 10.5.x (Leopard).
  2. Mount the .dmg (double-click on it)
  3. You'll get a new window with 2 files ("gpsbabel" and "GPSBabel+.app"). Create a new folder anywhere in your Mac OS X user directory, and drag these 2 items inside.
  4. Unmount the .dmg (eject it). You can delete the .dmg file if you want.

Converting using the app

  1. Go to your specific GPSBabel newly created folder, and launch GPSBabel+.app
  2. Follow the same procedure as for Windows, beginning with point 4.

Converting using the Mac OS X Terminal

This procedure fits well with some GPS receivers (i.e. NaviGPS) which are not included in the .app GUI

  1. Launch Terminal.app in your Applications/Utilities folder
  2. type this command, adapting the parameters in italic to your configuration :

    /path to gpsbabel/gpsbabel -t -i [input format] -f [input file name] -o gpx -F [output file name]
    Here is a converting example : /Applications/gpsbabel -t -i navilink -f XXX.BIN -o gpx -F xxx.gpx

Under Linux

  1. Install gpsbabel.
  2. Execute the command gpsbabel -t -i [input format] -f [input file name] -o gpx -F [output file name] replacing the relevant parts.

Note: if converting from KML be sure to add times!:

gpsbabel -i kml -f file.kml -x track,faketime=$(date +%Y%m%d%H0000)+10 -o gpx -F file.gpx