Semantic 3D city models are essential for visualising, analysing, and managing the built environment. CityGML is an international standard for representing 3D spatial information with a Unified Modelling Language (UML)-based data model to address data heterogeneity and facilitate
...
Semantic 3D city models are essential for visualising, analysing, and managing the built environment. CityGML is an international standard for representing 3D spatial information with a Unified Modelling Language (UML)-based data model to address data heterogeneity and facilitate data exchange. Common formats for encoding CityGML data include Extensible Markup Language (XML), CityJSON, and relational databases, with PostgreSQL preferred for its spatial data management capabilities enhanced by PostGIS.
Although relational databases like 3D City Database (3DCityDB) support CityGML v.1.0 and 2.0, challenges remain due to complex schemas and the need for advanced Structured Query Language (SQL) knowledge to access nested features and attributes of the encoded CityGML data, especially through Geographical Information System (GIS) software like QGIS, which is widely used by Architecture, Engineering and Construction (AEC) professionals. To address these issues, the 3DCityDB-Tools plug-in for QGIS (plug-in) developed by the 3D Geoinformation group at TU Delft simplifies interactions with 3DCityDB-encoded data by providing a user-friendly QGIS interface, enabling the creation of GIS layers composed of unique feature geometries and associated with attributes. With the release of CityGML v.3.0 in 2021, 3DCityDB is being updated to version 5.0, requiring corresponding changes to the plug-in for compatibility.
This thesis investigates the changes in the CityGML spatial concepts and the differences in 3DCityDB encoding. The methods are derived based on the 3DCityDB v.5.0 structure, which consists of schema-wise scans for checking the existing feature geometries and attributes. The scan results are then stored in the metadata tables for users to select the desired feature geometries and attributes for generating GIS layers. In the implementation, feature geometries are determined by the inherited fixed spatial properties of space or boundary features. In contrast, the feature attributes are classified into four types: ”Inline-Single”, ”Inline-Multiple”, ”Nested-Single” and ”Nested-Multiple” according to the modified 3DCityDB encoding. Each type requires specific flattening (linearisation) strategies to be joined with the geometries. Finally, users can generate GIS layers by joining the queried feature geometries and attributes. Several query time performance tests are conducted to determine the method for storing query results and creating the layers.
The generated GIS layers demonstrate flexible access to the feature geometries and attributes with enhanced attribute management. The attribute flattening method facilitates the consumption of complex attributes, making them accessible for batch querying in QGIS. While direct editing of geometries and attributes in GIS layers is not yet supported, these advancements increase the usability of CityGML data. Coping with the XML complex feature schema is a persistent technical challenge in the GIS applications; the proposed approach provides promising alternatives that align with the ongoing development efforts in the QGIS community, offering a complementary pathway for handling complex geospatial data.