解析IFC数据并转成json格式

Posted 西北逍遥

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解析IFC数据并转成json格式相关的知识,希望对你有一定的参考价值。

{
"com.bim.ifc.ifc2x3.ifc2x3tc1.IfcBuilding (#104)-": [{
"objKey": "GlobalId",
"objValue": "3ZkI21fNDEIxkybM8jtY4W"
}, {
"objKey": "Coordinates",
"objValue": "[0.0,0.0,0.0]"
}, {
"objKey": "客户姓名",
"objValue": "所有者"
}, {
"objKey": "类别",
"objValue": "项目信息"
}, {
"objKey": "项目发布日期",
"objValue": "发布日期"
}, {
"objKey": "项目名称",
"objValue": "项目名称"
}, {
"objKey": "项目地址",
"objValue": "请在此处输入地址"
}, {
"objKey": "项目状态",
"objValue": "项目状态"
}, {
"objKey": "项目编号",
"objValue": "项目编号"
}, {
"objKey": "NumberOfStoreys",
"objValue": "1"
}, {
"objKey": "作者",
"objValue": ""
}, {
"objKey": "建筑名称",
"objValue": ""
}, {
"objKey": "组织名称",
"objValue": ""
}, {
"objKey": "组织描述",
"objValue": ""
}],
"com.bim.ifc.ifc2x3.ifc2x3tc1.IfcBuildingStorey (#119)-F1": [{
"objKey": "GlobalId",
"objValue": "3ZkI21fNDEIxkybMBI8T$c"
}, {
"objKey": "Coordinates",
"objValue": "[0.0,0.0,0.0]"
}, {
"objKey": "名称",
"objValue": "F1"
}, {
"objKey": "建筑楼层",
"objValue": "true"
}, {
"objKey": "结构",
"objValue": "false"
}, {
"objKey": "基面",
"objValue": "项目基点"
}, {
"objKey": "立面",
"objValue": "0.0"
}, {
"objKey": "族名称",
"objValue": "标高"
}, {
"objKey": "类别",
"objValue": "标高"
}, {
"objKey": "族",
"objValue": "标高: C_标高00+层标"
}, {
"objKey": "族与类型",
"objValue": "标高: C_标高00+层标"
}, {
"objKey": "类别",
"objValue": "标高"
}, {
"objKey": "类型",
"objValue": "标高: C_标高00+层标"
}, {
"objKey": "类型 ID",
"objValue": "标高: C_标高00+层标"
}, {
"objKey": "AboveGround",
"objValue": ""
}, {
"objKey": "计算高度",
"objValue": "0.0"
}, {
"objKey": "端点 1 处的默认符号",
"objValue": "true"
}, {
"objKey": "端点 2 处的默认符号",
"objValue": "true"
}, {
"objKey": "符号",
"objValue": "C_正负标高零+层标: C_正负零+层标"
}, {
"objKey": "线型图案",
"objValue": "12+6+6+6 mm"
}, {
"objKey": "线宽",
"objValue": "1"
}, {
"objKey": "颜色",
"objValue": "0"
}, {
"objKey": "类型名称",
"objValue": "C_标高00+层标"
}],
"com.bim.ifc.ifc2x3.ifc2x3tc1.IfcWallStandardCase (#229)-基本墙:砖墙240mm:361850": [{
"objKey": "GlobalId",
"objValue": "3_ydjarPr1s9tRASGqIAUD"
}, {
"objKey": "Coordinates",
"objValue": "[-5322.05314945073,23609.4858986366,0.0]"
}, {
"objKey": "与体量相关",
"objValue": "false"
}, {
"objKey": "定位线",
"objValue": "墙中心线"
}, {
"objKey": "已附着底部",
"objValue": "false"
}, {
"objKey": "已附着顶部",
"objValue": "false"
}, {
"objKey": "底部偏移",
"objValue": "0.0"
}, {
"objKey": "底部延伸距离",
"objValue": "0.0"
}, {
"objKey": "底部限制条件",
"objValue": "标高: F1"
}, {
"objKey": "房间边界",
"objValue": "true"
}, {
"objKey": "无连接高度",
"objValue": "4000.0"
}, {
"objKey": "顶部偏移",
"objValue": "0.0"
}, {
"objKey": "顶部延伸距离",
"objValue": "0.0"
}, {
"objKey": "顶部约束",
"objValue": "标高: F2"
}, {
"objKey": "启用分析模型",
"objValue": "false"
}, {
"objKey": "结构",
"objValue": "false"
}, {
"objKey": "结构用途",
"objValue": "非承重"
}, {
"objKey": "体积",
"objValue": "17.4720000000001"
}, {
"objKey": "长度",
"objValue": "18200.0"
}, {
"objKey": "面积",
"objValue": "72.8"
}, {
"objKey": "ExtendToStructure",
"objValue": "false"
}, {
"objKey": "IsExternal",
"objValue": "true"
}, {
"objKey": "LoadBearing",
"objValue": "false"
}, {
"objKey": "Reference",
"objValue": "砖墙240mm"
}, {
"objKey": "族",
"objValue": "基本墙: 砖墙240mm"
}, {
"objKey": "族与类型",
"objValue": "基本墙: 砖墙240mm"
}, {
"objKey": "类别",
"objValue": "墙"
}, {
"objKey": "类型",
"objValue": "基本墙: 砖墙240mm"
}, {
"objKey": "类型 ID",
"objValue": "基本墙: 砖墙240mm"
}, {
"objKey": "创建的阶段",
"objValue": "新构造"
}],
"com.bim.ifc.ifc2x3.ifc2x3tc1.IfcSite (#372)-Default": [{
"objKey": "GlobalId",
"objValue": "3ZkI21fNDEIxkybM8jtY4Z"
}, {
"objKey": "Coordinates",
"objValue": "[0.0,0.0,0.0]"
}, {
"objKey": "作者",
"objValue": ""
}, {
"objKey": "建筑名称",
"objValue": ""
}, {
"objKey": "组织名称",
"objValue": ""
}, {
"objKey": "组织描述",
"objValue": ""
}, {
"objKey": "客户姓名",
"objValue": "所有者"
}, {
"objKey": "类别",
"objValue": "项目信息"
}, {
"objKey": "项目发布日期",
"objValue": "发布日期"
}, {
"objKey": "项目名称",
"objValue": "项目名称"
}, {
"objKey": "项目地址",
"objValue": "请在此处输入地址"
}, {
"objKey": "项目状态",
"objValue": "项目状态"
}, {
"objKey": "项目编号",
"objValue": "项目编号"
}],
"com.bim.ifc.ifc2x3.ifc2x3tc1.IfcSpace (#149)-1": [{
"objKey": "GlobalId",
"objValue": "3Mph_S_ef13f4LIAEQPvzw"
}, {
"objKey": "Coordinates",
"objValue": "[0.0,0.0,0.0]"
}, {
"objKey": "Reference",
"objValue": "面积 1"
}, {
"objKey": "标高",
"objValue": "F1"
}, {
"objKey": "GSA Space Areas",
"objValue": 45.0
}, {
"objKey": "名称",
"objValue": "面积"
}, {
"objKey": "编号",
"objValue": "1"
}, {
"objKey": "周长",
"objValue": "28000.0"
}, {
"objKey": "计算高度",
"objValue": "0.0"
}, {
"objKey": "面积",
"objValue": "45.0"
}, {
"objKey": "类别",
"objValue": "面积"
}, {
"objKey": "面积方案 ID",
"objValue": "可出租"
}, {
"objKey": "面积类型",
"objValue": "建筑公共面积"
}],
"com.bim.ifc.ifc2x3.ifc2x3tc1.IfcGroup (#357)-可出租": [{
"objKey": "GlobalId",
"objValue": "0jcJ1wPir4ER5pN8ZIKcHu"
}, {
"objKey": "Coordinates",
"objValue": ""
}, {
"objKey": "名称",
"objValue": "可出租"
}, {
"objKey": "类别",
"objValue": "面积方案"
}]
}











































































































































































































































































































以上是关于解析IFC数据并转成json格式的主要内容,如果未能解决你的问题,请参考以下文章

java怎么将json文件读取进来并转成map

PHP解析JSON

Xbim.GLTF源码解析:简介

通过spring MVC从表中查询数据并转换成需要的JSON格式

将Array格式的数据解析成JSON格式的数据

PHP从mysql中取出多组数据 如何加入数组中并转成JSON数组