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