feiyu02
2025-08-14 b10c22af595bd995e56946bff63b8f2f984b13e8
src/main/kotlin/com/flightfeather/uav/biz/sourcetrace/model/PollutedSource.kt
@@ -45,7 +45,10 @@
        // 按照区域检索内部污染源信息
        var result = mutableListOf<SceneInfo>()
        // 1. 首先按照四至范围从数据库初步筛选污染源,此处的区域坐标已转换为火星坐标系
        val polygonTmp = pollutedArea.polygon!!
        val polygonTmp = pollutedArea.polygon
        this.sceneList = emptyList()
        if (polygonTmp != null) {
        val fb = MapUtil.calFourBoundaries(polygonTmp)
        val sceneList = sceneInfoRep.findByCoordinateRange(fb)
        // 2. 再精确判断是否在反向溯源区域多边形内部
@@ -78,8 +81,8 @@
                r != null
            }.toMutableList()
        }
        this.sceneList = findClosestStation(sceneInfoRep, result)
        }
        val txt = summaryTxt(pollutedData, this.sceneList!!)
        this.conclusion = txt