From 8eb584869b4fd4de0f51c93f2616f12e51df9193 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 18 十二月 2025 17:48:29 +0800
Subject: [PATCH] 2025.12.18 1. 动态溯源相关分析逻辑调整; 2. 走航报告接口参数调整;
---
src/main/kotlin/com/flightfeather/uav/biz/report/MissionRiskArea.kt | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/src/main/kotlin/com/flightfeather/uav/biz/report/MissionRiskArea.kt b/src/main/kotlin/com/flightfeather/uav/biz/report/MissionRiskArea.kt
index 3974903..e019c7c 100644
--- a/src/main/kotlin/com/flightfeather/uav/biz/report/MissionRiskArea.kt
+++ b/src/main/kotlin/com/flightfeather/uav/biz/report/MissionRiskArea.kt
@@ -56,16 +56,11 @@
pollutedClues.forEach { pollutedClue ->
if (pollutedClue == null) return@forEach
- val dataList = pollutedClue.pollutedData?.dataList ?: emptyList()
- if (dataList.isEmpty()) return@forEach
-
// 璁$畻鍗曚釜PollutedClue鐨勫潎鍊肩粡绾害
- val avgData = dataList.avg()
- val wgs84Lng = avgData.longitude?.toDouble() ?: return@forEach
- val wgs84Lat = avgData.latitude?.toDouble() ?: return@forEach
-
+ val wgs84Center = pollutedClue.pollutedData?.getExceptionCenter() ?: return@forEach
+
// 鍧愭爣杞崲
- val gcj02Point = MapUtil.wgs84ToGcj02(wgs84Lng to wgs84Lat)
+ val gcj02Point = MapUtil.wgs84ToGcj02(wgs84Center)
// 鏌ユ壘鏈�杩戝満鏅�
var minDistance = Double.MAX_VALUE
--
Gitblit v1.9.3