feiyu02
2025-12-25 d649f734c44541641158aec2d6b10d630f5a0827
src/test/kotlin/com/flightfeather/uav/Test.kt
@@ -16,6 +16,7 @@
import java.io.OutputStreamWriter
import java.text.SimpleDateFormat
import java.util.*
import kotlin.math.round
/**
 * @author riku
@@ -202,7 +203,17 @@
    @Test
    fun reGeo() {
        val a = AMapService.reGeo(MapUtil.wgs84ToGcj02(121.45017 to 31.274426))
        println(a)
        val a = 0.7000000000000001
        println(round(a * 100))
    }
    @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)
    }
}