ccc-map/create-geojson.sh

8 lines
235 B
Bash
Raw Normal View History

2019-06-05 11:40:08 +02:00
#!/usr/bin/env sh
for file in $(ls *-csv) ; do
out=$(echo ${file}|cut -d- -f1)
2019-06-05 11:46:24 +02:00
test -e ${out}".geojson" && { echo "file exists: "${out}", skipping."; continue; }
2019-06-05 11:40:08 +02:00
echo ./lookup.py ${file}
2019-06-05 11:46:24 +02:00
./lookup.py ${file} > ${out}".geojson"
2019-06-05 11:40:08 +02:00
done