|
@@ -53,7 +53,7 @@ public class FdJsonToDxfUtil {
|
|
|
JSONObject points = fools.getJSONObject("points");
|
|
|
for (String key : points.keySet()) {
|
|
|
JSONObject obj = points.getJSONObject(key);
|
|
|
- FdPoints point = new FdPoints(obj.getDouble("x") * 1000, obj.getDouble("y") * 1000);
|
|
|
+ FdPoints point = new FdPoints(obj.getDouble("x") * 100, obj.getDouble("y") * 100);
|
|
|
wallMap.put(key,point);
|
|
|
}
|
|
|
DxfDocWriter dxfDocWriter = new DxfDocWriter();
|
|
@@ -114,8 +114,8 @@ public class FdJsonToDxfUtil {
|
|
|
int pointIndex = 0;
|
|
|
for (String xy : pointSet) {
|
|
|
FdPoints fdPoints = new FdPoints();
|
|
|
- fdPoints.setX(Double.valueOf(xy.split(",")[0])/1000);
|
|
|
- fdPoints.setY(Double.valueOf(xy.split(",")[1])/1000);
|
|
|
+ fdPoints.setX(Double.valueOf(xy.split(",")[0])/100);
|
|
|
+ fdPoints.setY(Double.valueOf(xy.split(",")[1])/100);
|
|
|
points.put("point"+pointIndex,fdPoints);
|
|
|
pointMap.put(xy,"point"+pointIndex);
|
|
|
pointIndex ++;
|