解析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": "面积方案"
}]
}

时间: 2024-10-14 15:14:10

解析IFC数据并转成json格式的相关文章

android实现json数据的解析和把数据转换成json格式的字符串

利用android sdk里面的 JSONObject和JSONArray把集合或者普通数据,转换成json格式的字符串 JSONObject和JSONArray解析json格式的字符串为集合或者一般数据 package com.hck.test; import java.util.ArrayList; import java.util.List; import org.json.JSONArray; import org.json.JSONException; import org.json.

java将XML文档转换成json格式数据

功能 将xml文档转换成json格式数据 说明 依赖包: 1. jdom-2.0.2.jar : xml解析工具包; 2. fastjson-1.1.36.jar : 阿里巴巴研发的高性能json工具包 程序源码 package com.xxx.open.pay.util; import com.alibaba.fastjson.JSONObject; import org.jdom2.Element; import org.jdom2.JDOMException; import org.jdo

php json_encode 将数组转换成json格式数据出错

当用php 的 json_encode 函数将数组转换成json格式的时候,如果该数组是一个索引数组而且数组的索引的顺序不是按照0,1,2...排序的话,在转换成json数据的时候就不能得到你所想要的json数组,而是一个json对象 这个问题是在开发app接口的时候发现的,因为php和app之前是通过json数据格式进行数据通讯的,而app那边对json的数组和对象类型很敏感,本来是数组格式的,可是突然变对象了,导致出错,后来就发现,php这边的索引数组的键名没有按照顺序排序的,导致转成jso

数据库记录转换成json格式 (2011-03-13 19:48:37) (转)

http://blog.sina.com.cn/s/blog_621768f30100r6v7.html 数据库记录转换成json格式 (2011-03-13 19:48:37) 转载▼ 标签: 杂谈   <?php/1.在company数据user表中取出10条数据,保存为数组2.在将数组转化为json格式,传递给js3.用json解析器将传递过来的json字符串转化为json对象,4.用document.write输出语句打印在页面上*/ $conn = mysql_connect(“loc

将传入结构体 pMtInfo 中包含的数据内容转换成 JSON 字符串返回

upu_struct.h封装了有关  pMtInfo结构体的内容,用到的部分如下图所示: 利用jansson库实现将传入结构体 pMtInfo 中包含的数据内容转换成 JSON 字符串返回 代码如下: #include <stdio.h> #include <string.h> #include "jansson.h" #include "upu_struct.h" #include "upu_proto_parse.h"

从数据库中的到数据对其转换为json格式(三)

从数据库中得到结果集 public String list() throws Exception { Connection con = null; PageBean pageBean = new PageBean(Integer.parseInt(page), Integer .parseInt(rows)); try { con = dbUtil.getCon(); JSONObject result = new JSONObject(); JSONArray jsonArray = Json

C#将datatable的某一列转换成json格式的字符串

将datatable的某一列转换成json格式的字符串(转换完后自己在字符串前后加{}) /// <summary> ///DataTable装换 Column数据 组合成json 现在的格式  /// </summary> /// <param name="dt"></param> /// <param name="rowIndex">datatable第几行</param> /// <

转!!JavaBean,List,Map转成json格式

public class User { private String username; private String password; public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } public void

JavaBean,List,Map转成json格式

Java代码   public class User { private String username; private String password; public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } pu