Code Monkey home page Code Monkey logo

Comments (3)

clausnagel avatar clausnagel commented on July 20, 2024

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.

from importer-exporter.

elainegv avatar elainegv commented on July 20, 2024

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

from importer-exporter.

clausnagel avatar clausnagel commented on July 20, 2024

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.

from importer-exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.