13693261870
8 天以前 b8d62de41ff7e1e0549061308aa11f68cf881ed9
se-system/src/main/java/com/terra/system/controller/data/WmtsController.java
@@ -4,10 +4,11 @@
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 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;
@@ -36,7 +37,7 @@
 * WMTS服务
 * @author WWW
 */
@Api(tags = "数据管理\\WMTS服务")
@Tag(name = "数据管理\\WMTS服务")
@RestController
@RequestMapping("/wmts")
public class WmtsController {
@@ -46,9 +47,9 @@
    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) {
@@ -78,13 +79,13 @@
        }
    }
    @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) {