idesktop打开arcgis发布的wmts数据显示空白

0 投票
用idesktop 10i打开arcgis 发布的wmts 数据。显示一片空白,而在arcgis中是可以显示的。能不能看看问题,qq: 280997161
5月 8 分类:  50次浏览 | 用户: damonWoo 才疏学浅 (10 分)

1个回答

0 投票

您好,看了一下您上次的桌面WMTS问题(http://ask.supermap.com/92858),请问工程师给您提供的ArcGIS示例WMTS您能打开吗?这次打开空白的服务和上次的服务是否一致,上次您的xml显示您第0层瓦片多于4个,这样的数据是不能加载的。

<TileMatrix>
<ows:Identifier>0</ows:Identifier>
<ScaleDenominator>472471.18303754483</ScaleDenominator>
<TopLeftCorner>1.00021E7 3.08768E7</TopLeftCorner> 
<TileWidth>256</TileWidth> 
<TileHeight>256</TileHeight>
<MatrixWidth>169</MatrixWidth> 
<MatrixHeight>182</MatrixHeight>
</TileMatrix>

5月 8 用户: jjz 名扬四海 (3,179 分)
我这边改了还是不行,下面是xml,还有其他原因吗?

<?xml version="1.0" encoding="UTF-8"?>
<Capabilities xmlns="http://www.opengis.net/wmts/1.0"
xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gml="http://www.opengis.net/gml"
xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd"
version="1.0.0">
<!-- Service Identification --> <ows:ServiceIdentification>
<ows:Title>MyMapService011</ows:Title>
<ows:ServiceType>OGC WMTS</ows:ServiceType>
<ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
</ows:ServiceIdentification> <!-- Operations Metadata --> <ows:OperationsMetadata>
<ows:Operation name="GetCapabilities">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="https://192.168.5.94:6443/arcgis/rest/services/MyMapService011/MapServer/WMTS/1.0.0/WMTSCapabilities.xml">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>RESTful</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
<!-- add KVP binding in 10.1 -->
<ows:Get xlink:href="https://192.168.5.94:6443/arcgis/rest/services/MyMapService011/MapServer/WMTS?">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>KVP</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
<ows:Operation name="GetTile">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="https://192.168.5.94:6443/arcgis/rest/services/MyMapService011/MapServer/WMTS/tile/1.0.0/">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>RESTful</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
<ows:Get xlink:href="https://192.168.5.94:6443/arcgis/rest/services/MyMapService011/MapServer/WMTS?">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>KVP</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
</ows:OperationsMetadata> <Contents>
<!--Layer--> <Layer>
<ows:Title>MyMapService011</ows:Title> <ows:Identifier>MyMapService011</ows:Identifier>
<ows:BoundingBox crs="urn:ogc:def:crs:EPSG::4490">
<ows:LowerCorner>34.585078665766346 109.71124279666392</ows:LowerCorner>
<ows:UpperCorner>35.03290182416861 110.27278306743318</ows:UpperCorner>
</ows:BoundingBox> <ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:2:84">
<ows:LowerCorner>109.71124279666392 34.585078665766346</ows:LowerCorner>
<ows:UpperCorner>110.27278306743318 35.03290182416861</ows:UpperCorner>
</ows:WGS84BoundingBox>
<Style isDefault="true">
<ows:Title>Default Style</ows:Title>
<ows:Identifier>default</ows:Identifier>
</Style>
<Format>image/png</Format>
<TileMatrixSetLink>
<TileMatrixSet>default</TileMatrixSet>
</TileMatrixSetLink>
<ResourceURL format="image/png" resourceType="tile" template="https://192.168.5.94:6443/arcgis/rest/services/MyMapService011/MapServer/WMTS/tile/1.0.0/MyMapService011/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png" />
</Layer> <!--TileMatrixSet-->
<TileMatrixSet>
<ows:Title>TileMatrix using 0.28mm</ows:Title>
<ows:Abstract>The tile matrix set that has scale values calculated based on the dpi defined by OGC specification (dpi assumes 0.28mm as the physical distance of a pixel).</ows:Abstract> <ows:Identifier>default</ows:Identifier>
<ows:SupportedCRS>urn:ogc:def:crs:EPSG::4490</ows:SupportedCRS>
<TileMatrix>
<ows:Identifier>0</ows:Identifier>
<ScaleDenominator>1.1194176799596224E9</ScaleDenominator>
<TopLeftCorner>399.9999999999998 -400.0</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
<MatrixWidth>1</MatrixWidth> <MatrixHeight>1</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>1</ows:Identifier>
<ScaleDenominator>5.597088399798112E8</ScaleDenominator>
<TopLeftCorner>399.9999999999998 -400.0</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
<MatrixWidth>2</MatrixWidth> <MatrixHeight>2</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>2</ows:Identifier>
<ScaleDenominator>2.798544199899051E8</ScaleDenominator>
<TopLeftCorner>399.9999999999998 -400.0</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
<MatrixWidth>3</MatrixWidth> <MatrixHeight>3</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>3</ows:Identifier>
<ScaleDenominator>1.3992720999495304E8</ScaleDenominator>
<TopLeftCorner>399.9999999999998 -400.0</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
<MatrixWidth>6</MatrixWidth> <MatrixHeight>5</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>4</ows:Identifier>
<ScaleDenominator>6.996360499747604E7</ScaleDenominator>
<TopLeftCorner>399.9999999999998 -400.0</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
<MatrixWidth>12</MatrixWidth> <MatrixHeight>9</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>5</ows:Identifier>
<ScaleDenominator>3.498180249873802E7</ScaleDenominator>
<TopLeftCorner>399.9999999999998 -400.0</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
<MatrixWidth>23</MatrixWidth> <MatrixHeight>17</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>6</ows:Identifier>
<ScaleDenominator>1.749090124936901E7</ScaleDenominator>
<TopLeftCorner>399.9999999999998 -400.0</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
<MatrixWidth>46</MatrixWidth> <MatrixHeight>33</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>7</ows:Identifier>
<ScaleDenominator>8745450.624684505</ScaleDenominator>
<TopLeftCorner>399.9999999999998 -400.0</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
<MatrixWidth>91</MatrixWidth> <MatrixHeight>65</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>8</ows:Identifier>
<ScaleDenominator>4372725.312342253</ScaleDenominator>
<TopLeftCorner>399.9999999999998 -400.0</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
<MatrixWidth>182</MatrixWidth> <MatrixHeight>130</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>9</ows:Identifier>
<ScaleDenominator>2186362.6561715994</ScaleDenominator>
<TopLeftCorner>399.9999999999998 -400.0</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
<MatrixWidth>363</MatrixWidth> <MatrixHeight>260</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>10</ows:Identifier>
<ScaleDenominator>1093181.3280853266</ScaleDenominator>
<TopLeftCorner>399.9999999999998 -400.0</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
<MatrixWidth>725</MatrixWidth> <MatrixHeight>520</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>11</ows:Identifier>
<ScaleDenominator>546590.6640431363</ScaleDenominator>
<TopLeftCorner>399.9999999999998 -400.0</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
<MatrixWidth>1450</MatrixWidth> <MatrixHeight>1039</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>12</ows:Identifier>
<ScaleDenominator>273295.3320210952</ScaleDenominator>
<TopLeftCorner>399.9999999999998 -400.0</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
<MatrixWidth>2900</MatrixWidth> <MatrixHeight>2077</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>13</ows:Identifier>
<ScaleDenominator>136647.6660105476</ScaleDenominator>
<TopLeftCorner>399.9999999999998 -400.0</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
<MatrixWidth>5800</MatrixWidth> <MatrixHeight>4153</MatrixHeight>
</TileMatrix>
</TileMatrixSet>
</Contents>
<ServiceMetadataURL xlink:href="https://192.168.5.94:6443/arcgis/rest/services/MyMapService011/MapServer/WMTS/1.0.0/WMTSCapabilities.xml" /> </Capabilities>

您看下地图范围,坐标系是4490不可能出现399和-400的范围:

<TileMatrix>
<ows:Identifier>0</ows:Identifier>
<ScaleDenominator>1.1194176799596224E9</ScaleDenominator>
<TopLeftCorner>399.9999999999998 -400.0</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
<MatrixWidth>1</MatrixWidth> <MatrixHeight>1</MatrixHeight>
</TileMatrix>

您可以看下我们官网示例的WMTS服务,其中包含4490坐标系的TileMatrixSet:
http://support.supermap.com.cn:8090/iserver/services/map-china400/wmts-china
范围如下:

<TopLeftCorner>90.0 -180.0</TopLeftCorner>

你能不能试着加载地理坐标是GCS_China_Geodetic_Coordinate_System_2000,arcgis server发的wmts服务?

您好,我这边没有这样的服务,只能找到ArcGIS的公共服务进行尝试,他们没有提供4490的,只有4326的WMTS服务。您这边能提供一个我能访问的服务吗?根据昨天您提供的新xml,可以看到地图范围已经超过一般地球的范围了,这样的图就算能在二维平面展示也不一定能在其他范围正确的系统展示,建议您先联系那边的技术人员确认一下服务发布是否正确。

我这里加载这些服务都是正常的:
http://cache1.arcgisonline.cn/arcgis/rest/services

...