Created
January 4, 2016 01:57
-
-
Save Gnurou/9b3e9e78077b76d6930a to your computer and use it in GitHub Desktop.
Script to convert KML files to GPX
This file contains 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 | |
for f in $* | |
do | |
unzip "$f" doc.kml | |
gpsbabel -i kml -f doc.kml -o gpx -F "${f%.kmz}.gpx" | |
rm doc.kml | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment