GPX Exchange Format (GPX) to Google Earth (KML)

Also demonstrates passing filter options, in this case to specify the output units to be metric.

$ gpsbabel -i gpx -f example.gpx -o kml,units=met -F example.kml

-- Frank Dean - 22 Sep 2017

Garmin MapSource - gdb

Convert a GPX format file's waypoints, routes and tracks to MapSource format:

$ gpsbabel -w -r -t -i gpx -f example.gpx -o gdb -F example.gdb

Garmin eTrex Vista

Determining the serial device name

GPSBabel can read and write directly to some devices over the serial port. On a Unix system, you can probably identify the serial device name by following the symbolic links under /dev/serial/bi-id - or just use those device names directly.

This example uses the serial port enabled via a USB adapter, reading routes and waypoints from the Garmin device and writing out to a file in GPX format:

$ gpsbabel -r -w -i garmin -f /dev/ttyUSB0 -o gpx -F example.gpx


$ gpsbabel -r -w -i garmin -f /dev/ttyS0 -o gpx -F example.gpx

This example transfer the routes and waypoints defined in the file to the GPS device.

$ gpsbabel -w -r  -i gpx -f test.gpx -o garmin -F /dev/ttyUSB0


$ gpsbabel -w -r  -i gpx -f test.gpx -o garmin -F /dev/ttyS0

Garmin Database exporting waypoints and routes to GPS device

$ gpsbabel -w -r -i gdb -f dartmoor_2009.gdb -o garmin -F /dev/ttyS0

See also and gpsbabel/gpsbabel on GitHub

Related Topics: