소스 검색

港口测试底图栅格json

huangchunxi 1 개월 전
부모
커밋
027f285ffa
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/main/java/com/ecnu/platform/test/TestPortGrid.groovy

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

@@ -74,7 +74,7 @@ class TestPortGrid {
                 algBaseMapArea.setType("lane")
 
                 double xNext = xJobLane + k * gridInterval
-                if (xNext + gridInterval < widthJobLane){
+                if ((k+1) * gridInterval < widthJobLane){
                     for (int j = 0;j < 5; j++){
                         coordinateJobGrid += xNext + xUnitList.get(j) * gridInterval + ","
                         coordinateJobGrid += yNext + yUnitList.get(j) * heightJobLane
@@ -124,7 +124,7 @@ class TestPortGrid {
                 algBaseMapArea.setType("lane")
 
                 double xNext = xTrafficLane + k * gridInterval
-                if (xNext + gridInterval < widthJobLane){
+                if ((k+1) * gridInterval < widthTrafficLane){
                     for (int j = 0;j < 5; j++){
                         coordinateTrafficGrid += xNext + xUnitList.get(j) * gridInterval + ","
                         coordinateTrafficGrid += yNext + yUnitList.get(j) * heightTrafficLane