mapcomplete/scripts/postal_code_tools/genWallonia.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
563 B
Bash
Raw Normal View History

2021-12-09 19:18:36 +01:00
#! /bin/bash
# Generates data for the wallonia address dataset: convex hulls for postal code outlines, tiled address files for import
wget https://opendata.bosa.be/download/best/openaddress-bewal.zip
unzip openaddress-bewal.zip
rm openaddress-bewal.zip
mkdir data
mkdir tiles
mv openaddress-bewal.csv data/
ts-node openaddressestogeojson.ts data/openaddress-bewal.csv data/openaddress --per-postal-code
ts-node openaddressestogeojson.ts data/openaddress-bewal.csv data/openaddress.geojson.nljson
ts-node ../slice.ts data/openaddress.geojson.nljson 14 tiles/