| | |
| | | // 按照区域检索内部污染源信息 |
| | | 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. 再精确判断是否在反向溯源区域多边形内部 |
| | |
| | | r != null |
| | | }.toMutableList() |
| | | } |
| | | |
| | | this.sceneList = findClosestStation(sceneInfoRep, result) |
| | | } |
| | | |
| | | val txt = summaryTxt(pollutedData, this.sceneList!!) |
| | | this.conclusion = txt |