Skip to content

Instantly share code, notes, and snippets.

@porjo
Created January 9, 2014 00:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save porjo/8327495 to your computer and use it in GitHub Desktop.
Save porjo/8327495 to your computer and use it in GitHub Desktop.
Convert .trk files from Go Cruise to GPX files suitable for OSM
#!/bin/bash
#
# Convert .trk files from Go Cruise to GPX files suitable for OSM
if [ $# -ne 1 ]
then
echo "Usage: $0 <input file>"
exit
fi
if [ -f $1 ]
then
newname=`basename $1 .trk`.gpx
echo "$newname"
echo "Converting $1 to $newname.."
gpsbabel -t -i igo8 -f $1 -o gpx -F $newname
else
echo "Error: file $1 could not be opened"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment