From 6540880475e1c3b182422838496aff42c6c9b94f Mon Sep 17 00:00:00 2001 From: 张洋洋 <10611411+yang-yang-z@user.noreply.gitee.com> Date: 星期四, 23 一月 2025 15:48:04 +0800 Subject: [PATCH] [add]cityjson转sem --- src/main/java/com/se/simu/controller/SimuController.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/se/simu/controller/SimuController.java b/src/main/java/com/se/simu/controller/SimuController.java index cf7f629..5f9937e 100644 --- a/src/main/java/com/se/simu/controller/SimuController.java +++ b/src/main/java/com/se/simu/controller/SimuController.java @@ -343,7 +343,7 @@ @ApiOperation(value = "tarr鏂囦欢缁勮") @GetMapping(value = "/saveZarr", produces = "application/json; charset=UTF-8") - public R<Boolean> saveZarr(@RequestParam("name") String tableName) throws Exception { + public R<String> saveZarr(@RequestParam("name") String tableName) throws Exception { List<String> list = CsvToSQLiteUtils.getNameList(tableName); String path = outPath + "\\"; String rainfall = "rainfall\\"; @@ -401,7 +401,7 @@ fileWriter.write(jsonObject.toJSONString()); fileWriter.close(); SemUtils.cityJsonToSem(path + tableName + "\\闄嶉洦閲�.json",path + tableName + "\\闄嶉洦閲�.sem"); - return success(true); + return success(path + tableName + "\\闄嶉洦閲�.sem"); } @ApiOperation(value = "绠$偣杞琧ityjson") @@ -445,7 +445,7 @@ fileWriter.write(jsonObject.toJSONString()); fileWriter.close(); SemUtils.cityJsonToSem(pointPath,path + times + "\\绠$偣.sem"); - return success(pointPath); + return success(path + times + "\\绠$偣.sem"); } @ApiOperation(value = "绠$嚎杞琧ityjson") @@ -493,7 +493,7 @@ fileWriter.write(jsonObject.toJSONString()); fileWriter.close(); SemUtils.cityJsonToSem(pointPath, path + times + "\\绠$嚎.sem"); - return success(pointPath); + return success(path + times + "\\绠$嚎.sem"); } @ApiOperation(value = "鍦板舰杞琧ityjson") @GetMapping(value = "/terrainToCityJson", produces = "application/json; charset=UTF-8") @@ -512,7 +512,7 @@ fileWriter.write(jsonObject.toJSONString()); fileWriter.close(); SemUtils.cityJsonToSem(path + "terrain.json", path + "terrain.sem"); - return success(path); + return success(path + "terrain.sem"); } public JSONObject getModule(String moduleName) { JSONObject jsonObject = new JSONObject(); -- Gitblit v1.9.3