This repository contains the configuration files required to get a PostGIS database of the Dutch cadaster (
BAG) up and running on a vagrant box. Once ready, you can access it from the host machine through QGIS.
Clone this repository and navigate into the folder.
vagrant up. The first time, this will build the box (so it might take a while, depending on connection and power of your machine). Once built, it will only take a few seconds to make it boot up.
At this point, the virtual machine (VM) is running and the PostGIS database is accessible from the host through the 15432 port. Connect to it from QGIS, for example, by using the QGIS browser. Select "Create a New PostGIS connection and enter the following info:
When you are done with the session, run
vagrant haltto stop the VM. This will free up a few GB of RAM in your host machine.
If you want to get rid of the VM, run
vagrant destroyand things will dissapear as if they'd never happened. That easy.
NOTE: I've had problems pulling down the dump file (1.8GB via
you experience any issue while building the vagrant box, download it separately
(link) and put it on the project folder with the name
dump.backup. Then run
vagrant destroy -f to remove the box with the error, and re-build it with
License & Credits
This is released under a BSD-type open-source license. See
This project builds on the following: