Created
January 9, 2014 00:47
-
-
Save porjo/8327495 to your computer and use it in GitHub Desktop.
Convert .trk files from Go Cruise to GPX files suitable for OSM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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