| | |
| | | package com.terra.system.controller.data; |
| | | |
| | | import com.terra.system.annotation.SysLog; |
| | | import com.terra.common.annotation.SysLog; |
| | | import com.terra.system.config.PropertiesConfig; |
| | | import com.terra.system.helper.StringHelper; |
| | | import com.terra.system.helper.WebHelper; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import com.terra.common.helper.StringHelper; |
| | | import com.terra.common.helper.WebHelper; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.Parameters; |
| | | import io.swagger.v3.oas.annotations.enums.ParameterIn; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.apache.commons.logging.Log; |
| | | import org.apache.commons.logging.LogFactory; |
| | | import javax.annotation.Resource; |
| | |
| | | * WMTS服务 |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "数据管理\\WMTS服务") |
| | | @Tag(name = "数据管理\\WMTS服务") |
| | | @RestController |
| | | @RequestMapping("/wmts") |
| | | public class WmtsController { |
| | |
| | | private final static Log log = LogFactory.getLog(WmtsController.class); |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "获取WMTS元数据") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "token", value = "令牌", required = true, dataType = "String", defaultValue = "token", paramType = "path") |
| | | @Operation(summary = "获取WMTS元数据") |
| | | @Parameters({ |
| | | @Parameter(name = "token", description = "令牌", required = true, example = "token", in = ParameterIn.PATH) |
| | | }) |
| | | @GetMapping("select/{token}/WMTSCapabilities.xml") |
| | | public void selectWmtsCapabilities(@PathVariable(name = "token") String token, HttpServletRequest req, HttpServletResponse res) { |
| | |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "获取WMTS瓦片") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "token", value = "令牌", required = true, dataType = "String", defaultValue = "token", paramType = "path"), |
| | | @ApiImplicitParam(name = "layer", value = "图层类型", required = true, dataType = "String", defaultValue = "img"), |
| | | @ApiImplicitParam(name = "tilematrix", value = "层级", required = true, dataType = "Integer"), |
| | | @ApiImplicitParam(name = "tilerow", value = "行号", required = true, dataType = "Integer"), |
| | | @ApiImplicitParam(name = "tilecol", value = "列号", required = true, dataType = "Integer") |
| | | @Operation(summary = "获取WMTS瓦片") |
| | | @Parameters({ |
| | | @Parameter(name = "token", description = "令牌", required = true, example = "token", in = ParameterIn.PATH), |
| | | @Parameter(name = "layer", description = "图层类型", required = true, example = "img"), |
| | | @Parameter(name = "tilematrix", description = "层级", required = true), |
| | | @Parameter(name = "tilerow", description = "行号", required = true), |
| | | @Parameter(name = "tilecol", description = "列号", required = true) |
| | | }) |
| | | @GetMapping("select/{token}/tile") |
| | | public void selectWmtsTile(@PathVariable(name = "token") String token, HttpServletRequest req, HttpServletResponse res) { |