public_library_map/.github/scripts/minify-map-json.sh
Hugh Rundle 12ef934e6c reconfigure minify-map-json action
- update yml by bringing shell script into the main action yml
- add shebang to shell script file in case this doesn't work and we need it still
2021-01-28 19:11:21 +11:00

5 lines
270 B
Bash

#!/usr/bin/env 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