2021-01-28 19:11:21 +11:00
|
|
|
#!/usr/bin/env bash
|
2021-01-28 18:57:43 +11:00
|
|
|
sudo npm install -g mapshaper
|
2021-01-28 18:15:47 +11:00
|
|
|
mapshaper ./boundaries.geo.json snap -clean -o force precision=0.0001 format=geojson ./boundaries.geo.json
|
2021-01-28 18:57:43 +11:00
|
|
|
sudo npm install -g topojson-server
|
2021-01-28 18:15:47 +11:00
|
|
|
geo2topo ./boundaries.geo.json -q 50000 > ./website/data/boundaries.topo.json
|