Merge branch 'master' into geo2topo
This commit is contained in:
commit
81e2ae533a
8
.github/workflows/minify-map-json.yml
vendored
8
.github/workflows/minify-map-json.yml
vendored
|
@ -13,12 +13,12 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Update TopoJSON boundaries
|
||||
- name: Update GeoJSON boundaries
|
||||
run: |
|
||||
sudo npm install -g mapshaper
|
||||
mapshaper ./boundaries.geo.json snap -clean -o force precision=0.0001 format=geojson ./boundaries.geo.json
|
||||
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
|
||||
geo2topo boundaries.geo.json -q 50000 > website/data/boundaries.topo.json
|
||||
python3 ./.github/scripts/merge_csv_to_topojson.py
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
|
@ -26,4 +26,4 @@ jobs:
|
|||
commit-message: Update TopoJSON boundaries
|
||||
title: Update TopoJSON boundaries
|
||||
body: Clean and minify GeoJSON and process to TopoJSON
|
||||
branch: geo-to-topo
|
||||
branch: geo-to-topo
|
||||
|
|
Loading…
Reference in a new issue