Bläddra i källkod

港口测试底图栅格json

huangchunxi 3 månader sedan
förälder
incheckning
5dfdebc74c
1 ändrade filer med 2 tillägg och 24 borttagningar
  1. 2 24
      src/main/java/com/ecnu/platform/test/TestPortGrid.groovy

+ 2 - 24
src/main/java/com/ecnu/platform/test/TestPortGrid.groovy

@@ -1,7 +1,6 @@
 package com.ecnu.platform.test
 
 import com.ecnu.alg.pojo.path.data.AlgPathStrategyInputData
-import com.ecnu.alg.pojo.path.inputs.AlgBaseMap
 import com.ecnu.alg.pojo.path.inputs.AlgBaseMapArea
 import com.three.common.utils.GsonUtil
 
@@ -31,26 +30,6 @@ class TestPortGrid {
 
         AlgPathStrategyInputData algPathStrategyInputData = new AlgPathStrategyInputData()
 
-        // 港口测试底图
-        AlgBaseMap algBaseMap = new AlgBaseMap()
-        algBaseMap.setId("testPort")
-        algBaseMap.setName("港口测试底图")
-
-        double xBaseMap = xInitial + 0 * multiple
-        double yBaseMap = yInitial + 0 * multiple
-        double widthBaseMap = 920 * multiple
-        double heightBaseMap = 138 * multiple
-        String coordinateBaseMap = new String()
-        for (int i = 0; i < 5; i++){
-            coordinateBaseMap += xBaseMap + xUnitList.get(i) * widthBaseMap + ","
-            coordinateBaseMap += yBaseMap + yUnitList.get(i) * heightBaseMap
-            if (i != 4){
-                coordinateBaseMap += ";"
-            }
-        }
-        algBaseMap.setPcsBorder(coordinateBaseMap)
-
-
         // 作业车道栅格JOB_GRID
         ArrayList<AlgBaseMapArea> jobGridList = new ArrayList<>()
         double xJobLane = xInitial + 3.3 * multiple
@@ -71,7 +50,7 @@ class TestPortGrid {
                 algBaseMapArea.setMapId("testPort")
                 String jobGridId = "JOB_GRID" + (i*numJob + k)
                 algBaseMapArea.setId(jobGridId)
-                algBaseMapArea.setType("lane")
+                algBaseMapArea.setType("grid")
 
                 double xNext = xJobLane + k * gridInterval
                 if (k < numJob-1){
@@ -121,7 +100,7 @@ class TestPortGrid {
                 algBaseMapArea.setMapId("testPort")
                 String trafficGridId = "T_GRID" + (i*numTraffic + k)
                 algBaseMapArea.setId(trafficGridId)
-                algBaseMapArea.setType("lane")
+                algBaseMapArea.setType("grid")
 
                 double xNext = xTrafficLane + k * gridInterval
                 if (k < numTraffic-1){
@@ -157,7 +136,6 @@ class TestPortGrid {
         mergedList.addAll(trafficGridList)
 
         // 输入数据
-        algPathStrategyInputData.setAlgBaseMap(algBaseMap)
         algPathStrategyInputData.setAlgBaseMapAreaList(mergedList)
 
         println(GsonUtil.toJson(algPathStrategyInputData))