MSc thesis Geomatics on computing solar potential for large CityJSON datasets.
First run the following:
virtualenv venv
. venv/bin/activate
pip install -r requirements.txt
This will create a new virtual environment, activate it and install all required packages to run the script.
Download one or multiple CityJSON file(s) from 3D BAG. Then upgrade the CityJSON file(s) to CityJSON version 1.1:
cjio [file.json] upgrade save [new_file.city.json]
Triangulate the CityJSON tile(s):
cjio [file.json] triangulate save [new_file.city.json]
Store all the triangulated files in a folder and run the script by using WSL or Linux terminal:
python3 solarBAG_CityJSON.py [folder_with_cityjson_files]
The script now only works for already triangulated CityJSON files.
The output of the program is an enriched CityJSON file. It can be visualised in Ninja.