From eb3dd00b0b7fcda477229d518d250f9c842b790b Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 21 十月 2025 17:45:44 +0800
Subject: [PATCH] 2025.10.21 1. 走航季度报告相关数据计算逻辑调整

---
 src/test/kotlin/com/flightfeather/uav/Test.kt |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/src/test/kotlin/com/flightfeather/uav/Test.kt b/src/test/kotlin/com/flightfeather/uav/Test.kt
index 11a50e1..2ca32f5 100644
--- a/src/test/kotlin/com/flightfeather/uav/Test.kt
+++ b/src/test/kotlin/com/flightfeather/uav/Test.kt
@@ -1,9 +1,7 @@
 package com.flightfeather.uav
 
-import com.flightfeather.uav.common.utils.DateUtil
-import com.flightfeather.uav.common.utils.FileExchange
-import com.flightfeather.uav.common.utils.FileUtil
-import com.flightfeather.uav.common.utils.TimeUtil
+import com.flightfeather.uav.common.net.AMapService
+import com.flightfeather.uav.common.utils.*
 import com.flightfeather.uav.domain.entity.BaseRealTimeData
 import com.flightfeather.uav.domain.entity.Company
 import com.flightfeather.uav.domain.entity.GridDataDetail
@@ -201,4 +199,20 @@
             println(sc.nextLine())
         }
     }
+
+    @Test
+    fun reGeo() {
+        val a = AMapService.reGeo(MapUtil.wgs84ToGcj02(121.45017 to 31.274426))
+        println(a)
+    }
+
+    @Test
+    fun foo20() {
+        val res = AMapService.polyLineJingAn.split(";")
+            .map { it.split(",")}
+            .map { MapUtil.gcj02ToWgs84(Pair(it[0].toDouble(), it[1].toDouble())) }
+            .map { "${it.first},${it.second}" }
+            .joinToString(";")
+        println(res)
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3