| | |
| | | @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); |
| | | } |
| | |
| | | |
| | | 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( |