macOS
•
xterm-256color
•
bash
691 views
Demonstrates how easy it is to process BAG (Dutch Addresses&Buildings) Dataset.
We download municipality “Doesburg” and process this .zip with NLExtract Docker container into Postgres (schema ‘doesburg’) and check the logfile and number of entries in verblijfsobject table using psql.
Preconditions
- Postgres DB with PostGIS named ‘bagv2’ with user/passwd: postgres/postgres
-
Dockerinstalled -
bashshell
Commands:
$ docker pull nlextract/nlextract:latest`
$ mkdir work
$ curl -o work/bag.zip https://extracten.bag.kadaster.nl/lvbag/extracten/Gemeente%20LVC/0221/BAGGEM0221L-15032021.zip
$ docker run --name nlextract --rm -v $(pwd)/work:/work nlextract/nlextract:latest bagv2/etl/etl.sh -a schema=doesburg -a bag_input_file=/work/bag.zip > bag.log 2>&1
$ tail bag.log
$ echo "select count(gid) from doesburg.pand" | psql bagv2
(Hint: just copy/paste the above and be done).
Donations Welcome!
Has the above saved you hours/days of otherwise BAG-ETL-struggle? Buy me a coffee or more with Paypal: