Skip to main content

I was wondering if it is possible to convert KMZ-files to CityGML? The KMZ-files contain a doc.kml file and a folder (models) which contains model.dae, model_textures.txt and a texture folder containing a .png.

 

I´ve been searching for a valid solution but I can´t seem to find one. I have looked at the common data workflows (https://www.safe.com/convert/). Does anyone have any ideas how to solve this problem.

 

To note: each KMZ file is representing a building, which we want to convert to CityGML so we can use 3DCityDB. 

 

Thanks

Hi @albnas​, The documentation the KML reader should help answer this in depth. The data you're interested would be stored in the <Placemark> feature type, the kml_parent attribute refers to the Folder feature type (corresponding with kml_id on the Folder). Let me know if this helps to get you started

 


Hi @jennaatsafe​ I have tried converting using KML reader (Placemark), CityGMLGeometrySetter and writing to Building (CityGML). The conversion is succesful however the coordinats seem to be be swiched so the building ends up in the ocean. Also my textures get inverted, so from the outside they are kind of transparant but if you move the camera inside the building, you can't see out.

 

Any ideas where things gone wrong?

 

Thanks


UPDATE: I found this thread https://community.safe.com/s/question/0D54Q000080hcmQSAQ/citygml-lod2-problem-with-coordinate-transformation which helped solving the positioning issue. But the building texture problem still exists.

 

Transparent when you look at the building from outside

imageBut not when you are inside the building.imageThanks


Reply