/bag3d

Software for generating a 3D version of the BAG dataset and more. Python + PostgreSQL + 3dfier

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

bag3d

Licence Python 3.6 PostgreSQL 10

bag3d is an application for generating a 3D version of the Dutch Basisregistraties Adressen en Gebouwen (BAG) data set, by using 3dfier for extruding the building footprints to LoD1 models. It is designed to regularly run as an automated process (eg. with a cron job), hence keeping the 3D BAG in line with the BAG updates. The project started as batch3dfier but it made sense to specialise it as more and more dataset specific features were needed.

In short the bag3d application can:

  • Download and restore a BAG PostgreSQL backup from NLExtract.
  • Download all the available AHN3 files and the tile index. When new tiles are available, download only those that are not stored locally. Additionally, append the AHN file creation date to each tile in the index.
  • Import the tile indexes for BAG and AHN to a PostgreSQL database and partition the BAG building footprints.
  • Run several 3dfier jobs in parallel to process the given tiles. Currently the 3dfication output is attached to the 2D polygons as height attributes and the results are stored in the database.
  • Export into CSV, GeoPackage or PostgreSQL backup.
  • Report various quality metrics.

Read the complete bag3d documentation

The 3D BAG is a register of addresses and buildings of the Netherlands, including building height information and related quality metrics. The data set is updated every month, keeping it up-to-date with the latest building stock and elevation information. The 3D BAG is generated from two data sources, the Dutch national register of addresses and buildings (Basisregistraties Adressen en Gebouwen (BAG)) and the national elevation model (AHN). Read the 3D BAG data set documentation