public_library_map/.github/scripts/minify-map-json.sh
Hugh Rundle 67f63d9202 update github action
- apparently it needs sudo with no password to npm install?
- also added ability to run the json update action manually
2021-01-28 18:57:43 +11:00

4 lines
250 B
Bash

sudo npm install -g mapshaper
mapshaper ./boundaries.geo.json snap -clean -o force precision=0.0001 format=geojson ./boundaries.geo.json
sudo npm install -g topojson-server
geo2topo ./boundaries.geo.json -q 50000 > ./website/data/boundaries.topo.json