vebit-map/create-geojson.sh

24 lines
571 B
Bash
Raw Permalink Normal View History

2019-06-05 11:40:08 +02:00
#!/usr/bin/env sh
2019-06-06 12:39:15 +02:00
echo "this takes some time depending on the amount of addresses in your lists …"
2020-01-31 00:09:49 +01:00
for file in *.csv ; do
out=$(echo "${file}"|cut -d"." -f1)".geojson"
if test -e "${out}" ; then
2019-11-15 22:35:44 +01:00
echo "file exists: ${out}, skipping."
continue
fi
2020-04-13 13:46:39 +02:00
echo ./lookup.py "${file}"
./lookup.py "${file}" > "${out}"
2020-04-13 12:48:50 +02:00
2020-04-13 13:46:39 +02:00
#~ fs=$(stat -t "${out}" |cut -d" " -f2)
#~ data="vebit-geojson/"
2020-04-13 12:48:50 +02:00
2020-04-13 13:46:39 +02:00
#~ if test "$fs" -gt 0 ; then
#~ if test -d "$data" ; then
#~ cp -f "${out}" "$data"
#~ cd "$data"
#~ git commit "${out}" -m "update file" && git push
#~ fi
#~ fi
2020-04-13 12:48:50 +02:00
2019-06-05 11:40:08 +02:00
done