citygml4j / citygml-tools

Collection of tools for processing CityGML files
Apache License 2.0
115 stars 18 forks source link

Missing information in building function when converting to CityJSON #25

Closed ozgetufan closed 2 years ago

ozgetufan commented 2 years ago

Hello, I converted a CityGML file to CityJSON where a building might have multiple functions, but in the CityJSON file only the first function is translated and the second one is missing.

image

image

clausnagel commented 2 years ago

CityJSON 1.0 defines the property "function" of city objects to be a simple string (see here). And adding complex properties (i.e., objects or arrays) to "attributes" requires an extension (see here) that doesn't exist for CityGML attributes such as bldg:function.

So, there is not really another option for citygml-tools than the current implementation. You could use generic attributes in your CityGML instead (which is not recommended though). Or open an issue for CityJSON?!

ozgetufan commented 2 years ago

I will do that, thank you for your answer!