| | |
| | | |
| | | @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\\"; |
| | |
| | | fileWriter.write(jsonObject.toJSONString()); |
| | | fileWriter.close(); |
| | | SemUtils.cityJsonToSem(path + tableName + "\\降雨量.json",path + tableName + "\\降雨量.sem"); |
| | | return success(true); |
| | | return success(path + tableName + "\\降雨量.sem"); |
| | | } |
| | | |
| | | @ApiOperation(value = "管点转cityjson") |
| | |
| | | fileWriter.write(jsonObject.toJSONString()); |
| | | fileWriter.close(); |
| | | SemUtils.cityJsonToSem(pointPath,path + times + "\\管点.sem"); |
| | | return success(pointPath); |
| | | return success(path + times + "\\管点.sem"); |
| | | } |
| | | |
| | | @ApiOperation(value = "管线转cityjson") |
| | |
| | | fileWriter.write(jsonObject.toJSONString()); |
| | | fileWriter.close(); |
| | | SemUtils.cityJsonToSem(pointPath, path + times + "\\管线.sem"); |
| | | return success(pointPath); |
| | | return success(path + times + "\\管线.sem"); |
| | | } |
| | | @ApiOperation(value = "地形转cityjson") |
| | | @GetMapping(value = "/terrainToCityJson", produces = "application/json; charset=UTF-8") |
| | |
| | | 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(); |