检查threedi模型的有效性
threedi-modelchecker的Python项目详细描述
threedi modelchecker是一个验证3di模型正确性的工具。 目标是为模型构建者提供一个工具,以便快速检查他/她 模型正确,可以进行三维仿真。它提供了详细的 有关模型中任何潜在错误的信息。
threedi modelchecks可用于spatialite和postgis数据库。然而, 数据库应始终具有最新的3di迁移:https://docs.3di.lizard.net/en/stable/d_before_you_begin.html#database-overview
安装:
pip install threedi-modelchecker
threedi modelchecker也集成到threeditoolbox qgis插件中:https://github.com/nens/ThreeDiToolbox
开发
为了便于开发,已经创建了Docker图像。它包含一个postgis 服务器有一个空的3di数据库,以方便测试。
建立图像:
docker-compose build
运行测试:
docker-compose run modelchecker pytest