Download the following files:
underpass_detection.pyunderpass_detection_main.py- Test datasets in
/datafolder
Run the script as follows:
python3 underpass_detection_main.py data/area_1.json area_1_underpassThe script takes two input arguments:
- Input file : A CityJSON file to be processed
- Output file name : An output file name without extension
- SHP file: A SHP file will be created in
/datafolder. The file contains merged Outer Ceiling Surfaces and their area for each City Object with underpasses. Load into QGIS for visualization.
area_1.json: Near Rotterdam central library (Google Maps)area_2.json: Near Maritime Museum (Google Maps)area_3.json: Near Rotterdam central station (Google Maps)
Generic attributes must be included in the input dataset. Be sure to include them when downloading a new dataset from 3D Rotterdam.
Following images are from test runs. Surfaces highlighted in green represent underpass surfaces.
| Area 1 | Area 2 | Area 3 |
|---|---|---|
![]() |
![]() |
![]() |
Example 1 (Google Map)
|
|
Example 2 (Google Map)
|
|
Example 3 (Google Map)
|
|
Example 4 (Google Map)
|
|










