#!/bin/bash
# usage:
#   kml2csv < polygon-line.kml > coord.txt
#
# generate coordinate list (latitude,longitude CSV format) from KML line

if [ $# -ne 0 ]; then
  echo "usage: kml2csv < polygon-line.kml > coord.txt"
  exit
fi

gpsbabel -t -i kml -f - -o csv -F -
