首页 / 浏览问题 / 云GIS / 问题详情
WMTS服务发布后在iClient Classic作为WMTS图层添加时报错
247EXP 2021年06月30日
在iServer上添加了WMTS服务后尝试在Classic的地图里添加

layer = new SuperMap.Layer.WMTS({
        name: "WMTS_Map",
        url: url,
        layer: "WMTS_Map",
        style: "default",
        matrixSet: "GlobalCRS84Scale_WMTS_Map",
        format: "image/png",
        resolutions: resolutions,
        matrixIds: matrixIds,
        opacity: 1,
        requestEncoding: "KVP"
    });

但读取地图时会报400的错误,点开后显示的内容如下:

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<ExceptionReport xmlns="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema" version="1.1.0">

<Exception exceptionCode="TileOutOfRange" locator="tileRow">

<ExceptionText>The tile requested by WMTS does not exist. The matrix set corresponding to the tile is GlobalCRS84Scale_WMTS_Map; the corresponding matrix is 2; the corresponding row number is 2; and the corresponding column number is 311184</ExceptionText>

</Exception>

<Exception exceptionCode="InvalidParameterValue" locator="tileRow">

<ExceptionText>In WMTS service request, tileRow parameter is illegal</ExceptionText></Exception>

</ExceptionReport>

请问应该如何添加。目前使用的是EPSG:3857的地图

1个回答

你好,你可以参考classic的示例代码https://iclient.supermap.io/examples/classic/editor.html#OGC_wmtsLayer,更改相关参数为你自己的wmts服务即可。

周萍
1
3,735EXP 2021年06月30日
您好,我就是在这里测试的。请问能否把服务地址私信给您,然后帮忙看看是哪里出了问题
你私信把服务地址发给我吧。
您好,我这边解决了。现在可以显示了,非常感谢
...