Use TopoJSON for smaller files
This commit is contained in:
parent
dc8302479e
commit
3037fb8f17
8 changed files with 64 additions and 24 deletions
|
|
@ -1,11 +1,25 @@
|
|||
# boundaries
|
||||
|
||||
## germany-states.geojson
|
||||
Downloaded from https://osm-boundaries.com.
|
||||
|
||||
TopoJSON (https://github.com/topojson/topojson) used to convert to topology, simplify and reduce precision:
|
||||
`npm install -g topojson`
|
||||
|
||||
## germany-states
|
||||
|
||||
Currently only containing states that do not use the municipality boundary for the Corona 15 km allowed zone rule.
|
||||
|
||||
Downloaded from https://osm-boundaries.com with:
|
||||
|
||||
```
|
||||
curl --remote-name --remote-header-name --location --max-redirs -1 "https://osm-boundaries.com/Download/Submit?apiKey=YOUR_API_KEY&db=osm20201109&osmIds=-28322,-62771,-62372,-62467,-62607,-62422,-62782,-62504&includeAllTags&simplify=0.0001"
|
||||
curl --remote-name --remote-header-name --location --max-redirs -1 "https://osm-boundaries.com/Download/Submit?apiKey=YOUR_API_KEY&db=osm20201109&osmIds=-28322,-62771,-62372,-62467,-62607,-62422,-62782,-62504&includeAllTags"
|
||||
|
||||
geo2topo germany-states.geojson | toposimplify -s 3e-12 | topoquantize 1e6 > germany-states.topo.json
|
||||
```
|
||||
|
||||
## countries
|
||||
|
||||
```
|
||||
curl --remote-name --remote-header-name --location --max-redirs -1 "https://osm-boundaries.com/Download/Submit?apiKey=YOUR_API_KEY&db=osm20201109&osmIds=-51477,-1403916"
|
||||
|
||||
geo2topo countries.geojson | toposimplify -s 3e-12 | topoquantize 1e6 > countries.topo.json
|
||||
```
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
1
resources/boundaries/germany-states.topo.json
Normal file
1
resources/boundaries/germany-states.topo.json
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue