2 Commits ae4041a0a9 ... b684428dce

Autor SHA1 Mensagem Data
  wurui b684428dce 1改成0 3 semanas atrás
  wurui 352b1875bd 线目标条带计算 3 semanas atrás

+ 6 - 2
orbit-base-biz/base-biz-service/src/main/java/com/base/biz/service/TargetDemandService.java

@@ -577,9 +577,13 @@ public class TargetDemandService extends ServiceImpl<TargetDemandMapper, TargetD
             QueryTargetPointBatchDTO SceneTargetPoint = new QueryTargetPointBatchDTO();
             SceneTargetPoint.setId(UUID.randomUUID().toString());
             SceneTargetPoint.setCreatedDate(new Date());
-            SceneTargetPoint.setLatitude(BigDecimal.valueOf(pointDTO.getLat()));
+
+            SceneTargetPoint.setLatitude(BigDecimal.valueOf(pointDTO.getLng()));
+
             SceneTargetPoint.setSource(1);
-            SceneTargetPoint.setLongitude(BigDecimal.valueOf(pointDTO.getLng()));
+
+            SceneTargetPoint.setLongitude(BigDecimal.valueOf(pointDTO.getLat()));
+
             SceneTargetPoint.setTargetId(targetId);
             SceneTargetPoint.setSequence(pointDTO.getSequence());
             SceneTargetPoint.setMovingEvgSpeed(pointDTO.getMovingEvgSpeed());

+ 1 - 1
orbit-base-plan/base-plan-service/src/main/java/com/base/plan/service/DemandService.java

@@ -76,7 +76,7 @@ public class DemandService {
     @Resource
     StepWindowDataPassRelationMapper stepWindowDataPassRelationMapper;
 
-    private static final String DEMAND_TYPE_FULL = "1";
+    private static final String DEMAND_TYPE_FULL = "0";
     
     private static final int IS_CONFIRMED = 2;
 

+ 4 - 4
orbit-base-plan/base-plan-service/src/main/java/com/base/plan/utils/LaLonUtil.java

@@ -35,10 +35,10 @@ public class LaLonUtil {
         double offsetLatitude = width / 111000; // 纬度方向上的偏移量(单位:米)
 
         // 根据中心点和偏移量计算矩形四个顶点的经纬度坐标
-        Coordinate corner1 = new Coordinate(centerLongitude - offsetLongitude, centerLatitude - offsetLatitude);
-        Coordinate corner2 = new Coordinate(centerLongitude + offsetLongitude, centerLatitude - offsetLatitude);
-        Coordinate corner3 = new Coordinate(centerLongitude + offsetLongitude, centerLatitude + offsetLatitude);
-        Coordinate corner4 = new Coordinate(centerLongitude - offsetLongitude, centerLatitude + offsetLatitude);
+        Coordinate corner1 = new Coordinate(startLond - offsetLongitude, strLatd - offsetLatitude);
+        Coordinate corner2 = new Coordinate(startLond + offsetLongitude, strLatd - offsetLatitude);
+        Coordinate corner3 = new Coordinate(endLond + offsetLongitude, endLatd + offsetLatitude);
+        Coordinate corner4 = new Coordinate(endLond - offsetLongitude, endLatd + offsetLatitude);
         PointRpcDTO pointRpcDTO1=new PointRpcDTO();
         pointRpcDTO1.setSort("1");
         pointRpcDTO1.setSerial("1");