Skip to content

Instantly share code, notes, and snippets.

@Gnurou
Created January 4, 2016 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gnurou/9b3e9e78077b76d6930a to your computer and use it in GitHub Desktop.
Save Gnurou/9b3e9e78077b76d6930a to your computer and use it in GitHub Desktop.
Script to convert KML files to GPX
#/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