Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with citygml file validation #290

Closed
elainegv opened this issue Aug 21, 2023 · 3 comments
Closed

Problem with citygml file validation #290

elainegv opened this issue Aug 21, 2023 · 3 comments
Labels

Comments

@elainegv
Copy link

Dear
I have a problem importing the CITYGML file in LOD 3.
When I perform the import and validation the following error appears:
ERROR] Invalid content at [30568, 17]: cvc-complex-type.2.4.a: error with element 'bldg:boundedBy'.
Does anyone know what it could be and how I can fix it?
Thank you very much in advance.

image
erro_LOD3

@clausnagel
Copy link
Member

Your CityGML file obviously violates the CityGML XML schemas and thus is invalid. This is not an issue of the Importer/Exporter tool but a problem of your dataset.

If you share (an excerpt) of your dataset, I can maybe give you a hint on what causes the problem and how to fix it.

@elainegv
Copy link
Author

elainegv commented Aug 21, 2023

novo_teste_6andar.zip
Thank you very much for your help.
Here is part of my file.
erro_xml.docx
erro_xml

@clausnagel
Copy link
Member

clausnagel commented Aug 21, 2023

Thanks, @elainegv, for sharing the dataset.

The reason for the validation error is simple: The dataset contains three BuildingFurniture objects (at lines 30567, 83014, and 103570) that have nested WallSurfaces. However, in CityGML 2.0 it is not allowed for objects of type BuildingFurniture to have boundary surfaces. This is also the reason why the XML validation of the Importer/Exporter complains about the invalid bldg:boundedBy elements.

To fix the problem, remove these WallSurfaces and store the geometry using only the bldg:lod4Geometry property of BuildingFurniture. It seems that you are using the 3DIS CityGML Sketchup Plugin to model the data? I have not used this tool before, but maybe you created the WallSurfaces for the BuildingFurniture objects manually and can simply remove them? Or maybe it's a bug of the tool. Either way, I recommend contacting 3DIS support for further assistance.

Interestingly, there is a fourth BuildingFurniture object (at line 49230) that has no WallSurfaces, only a bldg:lod4Geometry geometry. This BuildingFurniture object is valid and can serve as template for fixing the others. I recommed changing its geometry type from gml:MultiGeometry to gml:MultiSurface though.

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants