月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-09-11 636f52fc934cd4fdc61472d786dec14616b2f2fa
src/main/java/com/moon/server/controller/data/RasterAnalysisController.java
@@ -107,55 +107,4 @@
            return fail(ex, null);
        }
    }
    @SysLog()
    @ApiOperation(value = "下载点分析")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "wkt", value = "点WKT", dataType = "String", example = "")
    })
    @GetMapping(value = "/downloadByPoint")
    public void downloadByPoint(String wkt, HttpServletResponse res) {
        try {
            // ...
            String filePath = "生成文件的路径";
            WebHelper.download(filePath, "文件名", res);
        } catch (Exception ex) {
            log.error(ex.getMessage(), ex);
        }
    }
    @SysLog()
    @ApiOperation(value = "下载线分析")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "wkt", value = "线WKT", dataType = "String", example = "")
    })
    @GetMapping(value = "/downloadByPolyline")
    public void downloadByPolyline(String wkt, HttpServletResponse res) {
        try {
            // ...
            String filePath = "生成文件的路径";
            WebHelper.download(filePath, "文件名", res);
        } catch (Exception ex) {
            log.error(ex.getMessage(), ex);
        }
    }
    @SysLog()
    @ApiOperation(value = "下载面分析")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "wkt", value = "面WKT", dataType = "String", example = "")
    })
    @GetMapping(value = "/downloadByPolygon")
    public void downloadByPolygon(String wkt, HttpServletResponse res) {
        try {
            // ...
            String filePath = "生成文件的路径";
            WebHelper.download(filePath, "文件名", res);
        } catch (Exception ex) {
            log.error(ex.getMessage(), ex);
        }
    }
}