Commit bd8ee995 authored by 11's avatar 11

修改拓扑图参数

parent 770f3f19
......@@ -433,8 +433,14 @@ public class Manager {
String point = line.getPoints();
if(point!=null && point.length()>0){
point = point.substring(1,point.length()-2);
List points = Arrays.asList(point.split(","));
lineDto.setPoints(points);
point = point.replaceAll("\\\\", "");
point = point.replaceAll("\"", "");
List list = new ArrayList();
String [] mapArray = point.split(",");
for (int j = 0; j < mapArray.length; j++) {
list.add(Double.valueOf(mapArray[j]));
}
lineDto.setPoints(list);
}else{
lineDto.setPoints(null);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment