Commit 1dec4709 authored by jon r's avatar jon r
Browse files

build gartenkarte.json from framacalc intermediary

parent ec5eeb5b
......@@ -26,7 +26,6 @@ export ext=csv
source 99_template_ext
./01_get.sh $i
./02_clean.sh
./03_convert.sh
./replace_types.js $out $out-tags
......
#!/usr/bin/env bash
wget -O $i https://discourse.transformap.co/uploads/default/original/1X/c8738fb5ce0097c9256778995a65c2bd4961800e.csv
wget -O $i https://framacalc.org/gartenkarte2017.1.csv
#!/usr/bin/env bash
npm run --silent csv2geojson -- --lat "lat" --lon "lon" --delimiter ";" data/$out.csv > $out.json 2> ${out}liers.json
cp $i $o
npm run --silent csv2geojson -- --lat "lat" --lon "lon" --delimiter "," data/$out.csv > $out.json 2> ${out}liers.json
cat $out.json | jq -r '.features | map (.properties.types | split(";#") ) | { tags: . }' > $out-tags.json
npm run geojson2csv -- data/$out.json data/$out-verlan.csv
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment