天地图网络地图分块服务接口GetCapabilities操作

分类 道路交通 创建时间 2016-06-25 11:11:41 最后修改时间 2016-06-25 11:16:04
版本号 开放等级 无条件开放 更新频率
关键字 天地图 下载次数 15 浏览次数 4833
  • 接口地址: http://10.4.6.15:7002/wmts/wmts
  • 支持格式: XML
  • 请求方式: GET
  • 请求示例: http://10.4.6.15:7002/wmts/wmts?SERVICE=WMTS&REQUEST=GetCapabilities
  • 请求参数说明:
    参数 名称 类型 必填 说明
    SERVICE 服务类型 string 请求服务类型(WMTS)
    VERSION 服务版本 string 请求服务版本(1.0.0)
    REQUEST 服务操作 string 请求服务操作(GetCapabilities)
  • 返回值说明:
    参数 名称 类型 说明
    ServiceIdentification WMTS-K string 描述WMTS-K的标识信息
    ServiceProvider 基本信息 string 描述服务提供者的基本信息
    OperationsMetadata 操作信息 string 描述服务能够提供的操作信息
    Contents 具体描述 string 对服务下图层信息的具体描述
  • JSON 返回示例:
    <Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0.0/wmtsGetCapabilities_response.xsd" version="1.0.0">
     <ows:ServiceIdentification>
      <ows:Title>Web Map Tile Service</ows:Title> 
      <ows:Abstract>基于瓦片的网络地图服务</ows:Abstract> 
     <ows:Keywords>
      <ows:Keyword>OGC WMTS</ows:Keyword>  
      </ows:Keywords>
      <ows:ServiceType codeSpace="wmts"/> 
      <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion> 
      <ows:Fees>none</ows:Fees> 
      <ows:AccessConstraints>none</ows:AccessConstraints> 
      </ows:ServiceIdentification>
     <ows:ServiceProvider>
      <ows:ProviderName>武大吉奥信息技术有限公司</ows:ProviderName> 
      <ows:ProviderSite>http://www.geostar.com.cn/</ows:ProviderSite> 
     <ows:ServiceContact>
      <ows:IndividualName>Mr Lin</ows:IndividualName> 
      <ows:PositionName>Software Engineer</ows:PositionName> 
     <ows:ContactInfo>
     <ows:Phone>
      <ows:Voice>027-87196134</ows:Voice> 
      <ows:Facsimile>800-880-9008</ows:Facsimile> 
      </ows:Phone>
     <ows:Address>
      <ows:DeliveryPoint>武汉东湖新技术开发区庙山小区武大科技园</ows:DeliveryPoint> 
      <ows:City>武汉市</ows:City> 
      <ows:AdministrativeArea>湖北省</ows:AdministrativeArea> 
      <ows:Country>中国</ows:Country> 
      <ows:PostalCode>430223</ows:PostalCode> 
      <ows:ElectronicMailAddress>wuhanGeo@geostar.com.cn</ows:ElectronicMailAddress> 
      </ows:Address>
      <ows:OnlineResource xlink:type="simple" xlink:href="http://10.4.6.15:7002/wmts/wmts"/> 
      </ows:ContactInfo>
      </ows:ServiceContact>
      </ows:ServiceProvider>
     <ows:OperationsMetadata>
     <ows:Operation name="GetCapabilities">
     <ows:DCP>
     <ows:HTTP>
     <ows:Get xlink:href="http://10.4.6.15:7002/wmts/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="http://10.4.6.15:7002/wmts/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>
      <ows:Title>layer2</ows:Title> 
      <ows:Abstract>layer2</ows:Abstract> 
      <ows:Identifier>layer2</ows:Identifier> 
     <ows:WGS84BoundingBox>
      <ows:LowerCorner>121.37378832440193 30.695772307483338</ows:LowerCorner> 
      <ows:UpperCorner>121.42628864730257 30.74113098955494</ows:UpperCorner> 
      </ows:WGS84BoundingBox>
     <ows:BoundingBox>
      <ows:LowerCorner>560000.0 3397500.0</ows:LowerCorner> 
      <ows:UpperCorner>565000.0 3402500.0</ows:UpperCorner> 
      </ows:BoundingBox>
     <Style>
      <ows:Identifier>layer2</ows:Identifier> 
      </Style>
      <Format>image/png</Format> 
      <Format>image/jpeg</Format> 
      <Format>image/gif</Format> 
     <TileMatrixSetLink>
      <TileMatrixSet>Matrix_0</TileMatrixSet> 
      </TileMatrixSetLink>
      </Layer>
     <TileMatrixSet>
      <ows:Identifier>Matrix_0</ows:Identifier> 
      <ows:SupportedCRS>PROJCS["Gauss_Kruger (高斯-克里格投影)",GEOGCS["Krasovsky",DATUM["Krasovsky",SPHEROID["Krasovsky",6378245,298.3],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",120.7475384722],PARAMETER["scale_factor",1],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]</ows:SupportedCRS> 
     <TileMatrix>
      <ows:Identifier>2</ows:Identifier> 
      <ScaleDenominator>36909.44881889764</ScaleDenominator> 
      <TopLeftCorner>560000.0 3400000.0</TopLeftCorner> 
      <TileWidth>256</TileWidth> 
      <TileHeight>256</TileHeight> 
      <MatrixWidth>1</MatrixWidth> 
      <MatrixHeight>4</MatrixHeight> 
      </TileMatrix>
     <TileMatrix>
      <ows:Identifier>3</ows:Identifier> 
      <ScaleDenominator>18454.72440944882</ScaleDenominator> 
      <TopLeftCorner>560000.0 3400000.0</TopLeftCorner> 
      <TileWidth>256</TileWidth> 
      <TileHeight>256</TileHeight> 
      <MatrixWidth>3</MatrixWidth> 
      <MatrixHeight>9</MatrixHeight> 
      </TileMatrix>
     <TileMatrix>
      <ows:Identifier>4</ows:Identifier> 
      <ScaleDenominator>9227.36220472441</ScaleDenominator> 
      <TopLeftCorner>560000.0 3400000.0</TopLeftCorner> 
      <TileWidth>256</TileWidth> 
      <TileHeight>256</TileHeight> 
      <MatrixWidth>7</MatrixWidth> 
      <MatrixHeight>19</MatrixHeight> 
      </TileMatrix>
     <TileMatrix>
      <ows:Identifier>5</ows:Identifier> 
      <ScaleDenominator>4613.681102362205</ScaleDenominator> 
      <TopLeftCorner>560000.0 3400000.0</TopLeftCorner> 
      <TileWidth>256</TileWidth> 
      <TileHeight>256</TileHeight> 
      <MatrixWidth>15</MatrixWidth> 
      <MatrixHeight>39</MatrixHeight> 
      </TileMatrix>
     <TileMatrix>
      <ows:Identifier>6</ows:Identifier> 
      <ScaleDenominator>2306.8405511811025</ScaleDenominator> 
      <TopLeftCorner>560000.0 3400000.0</TopLeftCorner> 
      <TileWidth>256</TileWidth> 
      <TileHeight>256</TileHeight> 
      <MatrixWidth>31</MatrixWidth> 
      <MatrixHeight>79</MatrixHeight> 
      </TileMatrix>
     <TileMatrix>
      <ows:Identifier>7</ows:Identifier> 
      <ScaleDenominator>1153.4202755905512</ScaleDenominator> 
      <TopLeftCorner>560000.0 3400000.0</TopLeftCorner> 
      <TileWidth>256</TileWidth> 
      <TileHeight>256</TileHeight> 
      <MatrixWidth>63</MatrixWidth> 
      <MatrixHeight>159</MatrixHeight> 
      </TileMatrix>
      </TileMatrixSet>
     <Layer>
      <ows:Title>ds0</ows:Title> 
      <ows:Abstract>ds0</ows:Abstract> 
      <ows:Identifier>ds0</ows:Identifier> 
     <ows:WGS84BoundingBox>
      <ows:LowerCorner>112.236328125 36.123046875</ows:LowerCorner> 
      <ows:UpperCorner>112.412109375 36.2109375</ows:UpperCorner> 
      </ows:WGS84BoundingBox>
     <ows:BoundingBox>
      <ows:LowerCorner>112.236328125 36.123046875</ows:LowerCorner> 
      <ows:UpperCorner>112.412109375 36.2109375</ows:UpperCorner> 
      </ows:BoundingBox>
     <Style>
      <ows:Identifier>ds0</ows:Identifier> 
      </Style>
      <Format>image/png</Format> 
      <Format>image/jpeg</Format> 
      <Format>image/gif</Format> 
     <TileMatrixSetLink>
      <TileMatrixSet>Matrix_1</TileMatrixSet> 
      </TileMatrixSetLink>
      </Layer>
     <TileMatrixSet>
      <ows:Identifier>Matrix_1</ows:Identifier> 
      <ows:SupportedCRS>GEOGCS["WGS_1984",DATUM["WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]]</ows:SupportedCRS> 
     <TileMatrix>
      <ows:Identifier>12</ows:Identifier> 
      <ScaleDenominator>144447.92746804963</ScaleDenominator> 
      <TopLeftCorner>-180.0 90.0</TopLeftCorner> 
      <TileWidth>256</TileWidth> 
      <TileHeight>256</TileHeight> 
      <MatrixWidth>3326</MatrixWidth> 
      <MatrixHeight>612</MatrixHeight> 
      </TileMatrix>
     <TileMatrix>
      <ows:Identifier>13</ows:Identifier> 
      <ScaleDenominator>72223.96373402482</ScaleDenominator> 
      <TopLeftCorner>-180.0 90.0</TopLeftCorner> 
      <TileWidth>256</TileWidth> 
      <TileHeight>256</TileHeight> 
      <MatrixWidth>6653</MatrixWidth> 
      <MatrixHeight>1225</MatrixHeight> 
      </TileMatrix>
     <TileMatrix>
      <ows:Identifier>14</ows:Identifier> 
      <ScaleDenominator>36111.98186701241</ScaleDenominator> 
      <TopLeftCorner>-180.0 90.0</TopLeftCorner> 
      <TileWidth>256</TileWidth> 
      <TileHeight>256</TileHeight> 
      <MatrixWidth>13307</MatrixWidth> 
      <MatrixHeight>2451</MatrixHeight> 
      </TileMatrix>
      </TileMatrixSet>
      </Contents>
      </Capabilities>                                

  • 详细描述:

    GetCapabilities操作

    1.3.1.1概述

    本操作返回描述服务和操作信息的XML文档。

    1.3.1.2请求

    本服务接口遵循HTTP协议,以Get方式向服务提交请求

    A、请求参数说明:

    请求参数(大写)

    必选的(R/可选的(O

       

    SERVICE

    O

    请求服务类型(WMTS)

    VERSION

    O

    请求服务版本(1.0.0)

    REQUEST

    R

    请求服务操作(GetCapabilities)

    B、请求地址举例如下:

    http://10.4.6.15:7002/wmts/wmts?SERVICE=WMTS&REQUEST=GetCapabilities

    1.3.1.3响应

    返回结果为描述WMTS-K服务能力信息的XML,包含4个部分:ows:ServiceIdentification、ows:ServiceProvider、ows:OperationsMetadata和Contents。

    1)  ows:ServiceIdentification:描述WMTS-K的标识信息;

    2)  ows:ServiceProvider:描述服务提供者的基本信息;

    3)  ows:OperationsMetadata:描述服务能够提供的操作信息;

    4) Contents:对服务下图层信息的具体描述。

    返回示例信息如:

    WMTS_K_GetCapabilities.xml


  • 错误码参照(error_code):
    错误码 说明
  • 完整教学代码示例:
    语言 标题 提供者 时间
    JAVA 身份证查询接口调用示例 JoneDwyane 2015-09-14 16:40:40
    PHP 身份证查询接口调用示例 JoneDwyane 2015-09-14 16:40:40
    Python 身份证查询接口调用示例 JoneDwyane 2015-09-14 16:40:40
  • 常见问题: http://www.juhe.cn/qa/index/1449545897
 发表回复