enrich_building
Add semantic attributes such as height, roof type, function, usage, construction year, and storeys to a CityGML/CityJSON building by ID, updating the dataset directly.
Instructions
Reichert ein Gebäude mit semantischen Informationen an.
Die Änderungen werden direkt im Dataset vorgenommen (Single Source of Truth). Verwende take_snapshot() vor wichtigen Änderungen und save_dataset() zum Speichern.
Args: building_id: Die gml:id des Gebäudes measured_height: Gemessene Gebäudehöhe in Metern roof_type: Dachtyp-Code (z.B. "1000"=Flach, "1030"=Sattel, "1040"=Walm, "3100"=andere) roof_height: Dachhöhe in Metern function: Gebäudefunktion-Code nach CityGML (z.B. "31001_1010"=Wohngebäude, "31001_2000"=Gewerbe) usage: Nutzung des Gebäudes (z.B. "residential", "commercial", "industrial") year_of_construction: Baujahr (z.B. 2020) storeys_above_ground: Anzahl der Stockwerke über dem Boden storeys_below_ground: Anzahl der Stockwerke unter dem Boden (Keller) creation_date: Erstellungsdatum des Gebäudes (ISO-Format: "2020-01-15") Returns: dict: Das angereicherte Gebäude mit allen Attributen
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| usage | No | ||
| function | No | ||
| roof_type | No | ||
| building_id | Yes | ||
| roof_height | No | ||
| creation_date | No | ||
| measured_height | No | ||
| storeys_above_ground | No | ||
| storeys_below_ground | No | ||
| year_of_construction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||