将 CityGML 模型转换为 CityJson 文件

问题描述

我需要帮助使用 Citygml4j/Citygml-tools` 将 CityGML 模型转换为 CityJson 文件,因为我需要在 Qgis 软件中可视化 CityGML 模型。我从 CityJson 网站获得的教程对于像我这样的学生来说很简单。我希望你们中的任何人都可以帮助逐步将 CityGML 转换为 CityJson 的解决方案。我真诚地感谢您的任何帮助。谢谢。

https://www.cityjson.org/tutorials/conversion/ https://towardsdatascience.com/loading-3d-city-models-in-qgis-46347a638760

解决方法

根据其 github repo 中的 readme 文件,它基本上是:

citygml-tools to-cityjson /path/to/your/CityGML.gml

考虑到您使用的是 unix 系统并在包文件夹中打开了终端。

在windows中应该是:

citygml-tools.exe to-cityjson your_CityGML.gml

考虑到您在包文件夹和 citygml 文件中