Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darribas/bag_box
Vagrant config for a PostGIS database of the Dutch cadaster (`BAG`)
https://github.com/darribas/bag_box
Last synced: about 2 months ago
JSON representation
Vagrant config for a PostGIS database of the Dutch cadaster (`BAG`)
- Host: GitHub
- URL: https://github.com/darribas/bag_box
- Owner: darribas
- License: other
- Created: 2015-01-31T13:49:04.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-05T09:30:54.000Z (over 9 years ago)
- Last Synced: 2024-10-13T19:42:44.951Z (3 months ago)
- Language: Shell
- Size: 3.65 MB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# `BAG` box
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](http://qgis.org).
![bag_box](bag_box.png)
## Usage
* Make sure you have installed a recent version of
[`VirtualBox`](https://www.virtualbox.org/) and
[`Vagrant`](https://www.vagrantup.com/).
* Clone this repository and navigate into the folder.
* Run `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:* Name: `bag`
* Host: `localhost`
* Port: `15432`
* Database: `bag`
* Username: `kademo`
* Password: `kademo`* When you are done with the session, run `vagrant halt` to 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 destroy` and things will
dissapear as if they'd never happened. That easy.**NOTE**: I've had problems pulling down the dump file (1.8GB via `wget`). If
you experience any issue while building the vagrant box, download it separately
([link](http://data.nlextract.nl/bag/postgis/bag-2015_01_07.backup)) 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
`vagrant up`.## License & Credits
This is released under a BSD-type open-source license. See `LICENSE.txt` for
details.This project builds on the following:
* [Postgis dump](http://data.nlextract.nl/bag/postgis/) of the Dutch cadaster made by the good folks at
[`NLExtract`](https://github.com/opengeogroep/NLExtract).
* [This tutorial](https://github.com/jackdb/pg-app-dev-vm) by JackDB, Inc.
about how to setup a PostgreSQL database in vagrant and make is accessible
to the host machine.