From b2d73b4c8e85900973bb2d80e0883640eeadf804 Mon Sep 17 00:00:00 2001
From: aix <vip_xiaobin810@163.com>
Date: Tue, 30 Jul 2024 17:22:04 +0800
Subject: [PATCH] 参数验证
---
src/main/java/com/dji/sample/wayline/plane/PlaneCourseUtils.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/dji/sample/wayline/plane/PlaneCourseUtils.java b/src/main/java/com/dji/sample/wayline/plane/PlaneCourseUtils.java
index bc780cb..1440128 100644
--- a/src/main/java/com/dji/sample/wayline/plane/PlaneCourseUtils.java
+++ b/src/main/java/com/dji/sample/wayline/plane/PlaneCourseUtils.java
@@ -161,8 +161,8 @@
//最南纬点经纬度
MapLatLng mapLatLngMin = PlaneCourseUtils.minLatPoint(param.getPolygon());
- List<MapLatLng> topLeftPointList = PlaneCourseUtils.createPoint(boundingRectangle.topLeft, intValue, param.getBearing(), mapLatLngMin);
- List<MapLatLng> topRightPointList = PlaneCourseUtils.createPoint(boundingRectangle.topRight, intValue, param.getBearing(), mapLatLngMin);
+ List<MapLatLng> topLeftPointList = PlaneCourseUtils.createPoint(boundingRectangle.topLeft, intValue, param.getBearing() * 2, mapLatLngMin);
+ List<MapLatLng> topRightPointList = PlaneCourseUtils.createPoint(boundingRectangle.topRight, intValue, param.getBearing() * 2, mapLatLngMin);
List<LineString> lineStrings = PlaneCourseUtils.createLine(topLeftPointList, topRightPointList);
--
Gitblit v1.9.3