月球大数据地理空间分析展示平台-【后端】-月球后台服务
1
13693261870
2023-09-23 4869f5a2ce4b8c2f063e1a3af8bf092a915a774b
src/main/java/com/moon/server/service/data/RasterAnalysisService.java
@@ -42,6 +42,11 @@
    /**
     * 测试
     *
     * POINT (26.72 -48.58)
     * LINESTRING(18.44 -46.69,20.14 -45.93)
     * POLYGON ((5.11 -41.64,7.68 -43.59,4.73 -43.3,5.11 -41.64))
     * POLYGON ((42.6 -40.3,49.1 -40.4,49.1 -65.7,46.3 -65.6,42.6 -40.3))
     */
    public List<AnalysisResultEntity> test(Geometry geo, Integer size) {
        List<AnalysisResultEntity> rs = new ArrayList<>();
@@ -144,8 +149,8 @@
     */
    private void openRaster(AnalysisResultEntity entity, String filePath, Geometry geo, int size) {
        Dataset ds = null;
        filePath = "D:\\Moon\\data\\DOM\\test.tif";
        try {
            // filePath = "D:\\Moon\\data\\DOM\\test.tif"
            ds = gdal.Open(filePath);
            if (null == ds) {
                throw new Exception("打开栅格数据失败");