|
@@ -20,8 +20,8 @@ import java.util.Map;
|
|
|
public class FloorPlanUserUtil {
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
- JSONObject floorPlanUserJson = FloorPlanUserUtil.createFloorPlanUserJson("C:\\Users\\dsx\\Desktop\\floorplan_cad.json");
|
|
|
- FileUtil.writeUtf8String(floorPlanUserJson.toJSONString(), "C:\\Users\\dsx\\Desktop\\floorplan.json");
|
|
|
+ JSONObject floorPlanUserJson = FloorPlanUserUtil.createFloorPlanUserJson("D:\\test\\新建文件夹\\floorplan_cad.json");
|
|
|
+ FileUtil.writeUtf8String(floorPlanUserJson.toJSONString(), "D:\\test\\新建文件夹\\floorplan.json");
|
|
|
|
|
|
}
|
|
|
|
|
@@ -57,6 +57,9 @@ public class FloorPlanUserUtil {
|
|
|
JSONObject targetFloor = new JSONObject();
|
|
|
targetFloor.put("points", convertArrToMap(points));
|
|
|
targetFloor.put("walls", convertArrToMap(walls));
|
|
|
+ targetFloor.put("id", floor.getInteger("id"));
|
|
|
+ targetFloor.put("name",floor.getString("name"));
|
|
|
+ targetFloor.put("subgroup", floor.getInteger("subgroup"));
|
|
|
targetFloors.add(targetFloor);
|
|
|
}
|
|
|
|