Skip to main content
Solved

citygml open error

  • August 28, 2025
  • 1 reply
  • 39 views

charry
Supporter
Forum|alt.badge.img+5
I converted the fbx model to citygml format and opened it in KITModel Viewer, but encountered an error and the model did not display。

 

 

Best answer by takashi

Hi ​@charry ,

According to CityGML 2.0 format specification and XML schema, for BuildingInstallation, the valid lod name is "lod[2-4]Geometry" and the valid feature role is "outerBuildingInstallation". Also, BuildingInstallation features should be children of a Building feature. See also this document in the FME CityGML Reader/Writer Help to learn more about avaliable lod name and feature role for each feature type.

Writing CityGML from FME

I'm not familiar with KITModel Viewer, but guessing that it would parse the XML schema strictly when reading a CityGML dataset.

If you are attempting to create a CityGML dataset describing only BuildingInstallation features, try:

  • Change lod name and feature role to valid values.
  • Add "gml_parent_id" representing "gml_id" of parent Building feature to every BuildingInstallation feature.
  • Write Building feature(s) having "gml_id" (= "gml_parent_id" of children BuildingInstallation features).

This screenshot illustrates a minimal update example.

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

takashi
Celebrity
  • Best Answer
  • August 28, 2025

Hi ​@charry ,

According to CityGML 2.0 format specification and XML schema, for BuildingInstallation, the valid lod name is "lod[2-4]Geometry" and the valid feature role is "outerBuildingInstallation". Also, BuildingInstallation features should be children of a Building feature. See also this document in the FME CityGML Reader/Writer Help to learn more about avaliable lod name and feature role for each feature type.

Writing CityGML from FME

I'm not familiar with KITModel Viewer, but guessing that it would parse the XML schema strictly when reading a CityGML dataset.

If you are attempting to create a CityGML dataset describing only BuildingInstallation features, try:

  • Change lod name and feature role to valid values.
  • Add "gml_parent_id" representing "gml_id" of parent Building feature to every BuildingInstallation feature.
  • Write Building feature(s) having "gml_id" (= "gml_parent_id" of children BuildingInstallation features).

This screenshot illustrates a minimal update example.