服务地址:https://192.168.5.94:6443/arcgis/rest/services/DLTB6104292016/MapServer/WMTS 下面是wmts的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>DLTB6104292016</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/DLTB6104292016/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/DLTB6104292016/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/DLTB6104292016/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/DLTB6104292016/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>DLTB6104292016</ows:Title> <ows:Identifier>DLTB6104292016</ows:Identifier> <ows:BoundingBox crs="urn:ogc:def:crs:EPSG::4524"> <ows:LowerCorner>3868963.150800001 3.6511394848E7</ows:LowerCorner> <ows:UpperCorner>3935179.2032999992 3.65791053563E7</ows:UpperCorner> </ows:BoundingBox> <ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:2:84"> <ows:LowerCorner>108.1247457370464 34.94616743587853</ows:LowerCorner> <ows:UpperCorner>108.87233579169934 35.546024765369516</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>default028mm</TileMatrixSet> </TileMatrixSetLink> <ResourceURL format="image/png" resourceType="tile" template="https://192.168.5.94:6443/arcgis/rest/services/DLTB6104292016/MapServer/WMTS/tile/1.0.0/DLTB6104292016/{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>default028mm</ows:Identifier> <ows:SupportedCRS>urn:ogc:def:crs:EPSG::4524</ows:SupportedCRS> <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> <TileMatrix> <ows:Identifier>1</ows:Identifier> <ScaleDenominator>236235.59151877242</ScaleDenominator> <TopLeftCorner>1.00021E7 3.08768E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight> <MatrixWidth>337</MatrixWidth> <MatrixHeight>363</MatrixHeight> </TileMatrix> <TileMatrix> <ows:Identifier>2</ows:Identifier> <ScaleDenominator>118117.79575938621</ScaleDenominator> <TopLeftCorner>1.00021E7 3.08768E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight> <MatrixWidth>674</MatrixWidth> <MatrixHeight>725</MatrixHeight> </TileMatrix> <TileMatrix> <ows:Identifier>3</ows:Identifier> <ScaleDenominator>59058.897879693104</ScaleDenominator> <TopLeftCorner>1.00021E7 3.08768E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight> <MatrixWidth>1347</MatrixWidth> <MatrixHeight>1449</MatrixHeight> </TileMatrix> <TileMatrix> <ows:Identifier>4</ows:Identifier> <ScaleDenominator>29529.448939846552</ScaleDenominator> <TopLeftCorner>1.00021E7 3.08768E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight> <MatrixWidth>2694</MatrixWidth> <MatrixHeight>2898</MatrixHeight> </TileMatrix> <TileMatrix> <ows:Identifier>5</ows:Identifier> <ScaleDenominator>14764.724469923276</ScaleDenominator> <TopLeftCorner>1.00021E7 3.08768E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight> <MatrixWidth>5388</MatrixWidth> <MatrixHeight>5796</MatrixHeight> </TileMatrix> <TileMatrix> <ows:Identifier>6</ows:Identifier> <ScaleDenominator>7382.362234961638</ScaleDenominator> <TopLeftCorner>1.00021E7 3.08768E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight> <MatrixWidth>10776</MatrixWidth> <MatrixHeight>11591</MatrixHeight> </TileMatrix> </TileMatrixSet> </Contents> <ServiceMetadataURL xlink:href="https://192.168.5.94:6443/arcgis/rest/services/DLTB6104292016/MapServer/WMTS/1.0.0/WMTSCapabilities.xml" /> </Capabilities>
你好,请问你用的是什么版本的idesktop呢?因为你的地址不是公网的,我没法访问测试。我这里有个我们官网示例的arcgis的wmts服务,你那边可以测一下能不能正常加载出来:http://cache1.arcgisonline.cn/arcgis/rest/services/ChinaOnlineStreetPurplishBlue/MapServer/WMTS
我这边测试这个链接没问题