The django-citydb
application is an interface to 3DCityDB with extensions of EnergyADE and UtilityNetworksADE. We are schema-compliant
with 3DCityDB and ADEs, however we have not connected all possible classes of EnergyADE and UtilityNetworksADE schema.
In addition this app will offer Django templates and static Java scripts that can be used for a GIS based web application with various pre-defined functions. Feel free to use and change them for you specific project.
To run this app you'll have to have access to a PostGIS PostgreSQL
and InfluxDB
database, we assume that you'll set up Django project and a python environment with
dependencies and corresponding environment variables. As a template you can use
vDistrict, where you'll also find detailed instructions for isntallation of
databases and your python environment.
This application is developed by DVG
, if you have any questions don't hesitate to
contact us. The goal is to publish
it as open-source software.
To install the django-citydb
package itself do the following:
-
Clone this repository into your desired folder:
$ git clone [SSH-Key/Https]
-
Use pip to install the local copy of
django-citydb
(the path should point to the folder that contains thisREADME
):$ pip install -e [Path/to/your/django-citydb/Clone]
To install the django-citydb
package itself do the following:
-
Clone this repository into your desired folder:
$ git clone [SSH-Key/Https]
-
Use pip to install the local copy of
django-citydb
(the path should point to the folder that contains thisREADME
):$ pip install -e [Path/to/your/django-citydb/Clone]
We assume you have followed installation instructions above (including setting up the databases or having databases available).
-
Add
citydb
to your INSTALLED_APPS setting like this::INSTALLED_APPS = [ ... 'citydb', ]
-
Include the
citydb
URLconf in your projecturls.py
, with its required dependencies, like this::from django.conf.urls import url from django.urls import include url(r'^citydb/', include('citydb.urls')),
-
Run to create and synchronize the models (after the first
migrate
you will get some errors, that the tablebuilding
already exists, please just ignore it)$ python manage.py migrate citydb $ python manage.py migrate --fake-initial
-
Visit http://127.0.0.1:8000/citydb/ to test if installation worked
This is version 0.1.0
We aim at full schema conformability wit EnergyADE for CityGML. However, we made some changes, we try to add schema conformability in future:
- add "provides" to all EnergyConversionSystem to easily link Systems to buildings that are provided with this system (see: https://git.rwth-aachen.de/energyade/citygml-energy/issues/168)
- add "series_related_to" to IrregularTimeSeriesFile to easily link more than one time series to EnergyConversionSystems (issue to be raised)
- add "ordered_position" to Layer, to order the position of the layer from inside to outside
The actual main part of 'django-citydb' is developed for:
(1) Remmen, P. Automated Calibration of Non-Residential Urban Building Energy Modeling = Automatisierte Kalibrierung von Simulationsmodellen Für Nichtwohngebäude Im Städtischen Maßstab, 1. Auflage.; E.ON Energy Research Center, RWTH Aachen University: Aachen, 2022. [Link](https://publications.rwth-aachen.de/record/843586/files/843586.pdf)
Thanks for contributing! Please follow our contributors guide
django-citydb
has been developed within public funded projects
and with financial support by BMWK (Federal Ministry for Economics and Climate Action)