1
13693261870
2024-10-16 dbd56c635c64d92dd23c7f4c9227f84f77bbd82b
1
已修改2个文件
25 ■■■■ 文件已修改
src/main/java/com/se/simu/controller/SimuController.java 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/se/simu/service/ResultService.java 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/se/simu/controller/SimuController.java
@@ -159,12 +159,14 @@
    @GetMapping("/testResuslt")
    public R<Object> testResuslt() {
        try {
            //DataPo data = new DataPo("20240913", "20240913", "20240913", 116.64388473935195, 39.884315914604464, 116.64754729082588, 39.887069143903496, 50.0, 25);
            //Object rs = gedbService.test(data);
            DataPo data = new DataPo();
            data.setEpsg(4548);
            data.setInPath("20241010095328");
            data.setStartTime(StringHelper.YMDHMS_FORMAT.parse("2024-09-30 00:00:00"));
            Object rs = resultService.testResuslt();
            resultService.process(data);
            return success(rs);
            return success("ok");
        } catch (Exception ex) {
            return fail(ex, null);
        }
src/main/java/com/se/simu/service/ResultService.java
@@ -40,21 +40,6 @@
    public final static double MAX_X_OFFSET = 0.002;
    public String testResuslt() throws Exception {
        ResultDto dto = new ResultDto(
                "202409",
                "D:\\simu\\input\\tongzhou-local-mesh2-terrain.tif",
                "D:\\simu\\input\\tongzhou-local-mesh2-buildings.tif",
                "D:\\simu\\input\\waters",
                "D:\\simu\\input\\flows",
                "D:\\simu\\out",
                "");
        LayerDto layer = new LayerDto(config.getVer(), 4528, config.getSizes());
        process(dto, layer);
        return "OK";
    }
    public void process(DataPo data) throws Exception {
        String basePath = config.getInPath() + File.separator + data.getInPath() + File.separator;
        ResultDto dto = new ResultDto(