天天看點

幾種常見的地圖瓦片服務幾種常見的地圖瓦片服務

幾種常見的地圖瓦片服務

按投影類型分為 WGS84 (EPSG:4326)和Web墨卡托(EPSG:3857)。WGS84 屬于橢球體便于計算量測,常用于GPS或其他測圖相關;Web墨卡托屬于标準的球體,便于顯示,常用于Web地圖顯示。

  1. WGS84 (EPSG:4326)瓦片規則:
    幾種常見的地圖瓦片服務幾種常見的地圖瓦片服務
  2. Web墨卡托瓦片規則:
    幾種常見的地圖瓦片服務幾種常見的地圖瓦片服務

按照服務類型分為:WMTS 和TMS。

OpenStreetMap

Web墨卡托投影

瓦片規則

  1. (0,0,0)

    https://a.tile.openstreetmap.org/0/0/0.png

幾種常見的地圖瓦片服務幾種常見的地圖瓦片服務
  1. (1,0,0)

    https://a.tile.openstreetmap.org/1/0/0.png

  2. (1,1,0)

    https://a.tile.openstreetmap.org/1/1/0.png

  3. (1,0,1)

    https://a.tile.openstreetmap.org/1/0/1.png

  4. (1,1,1)

    https://a.tile.openstreetmap.org/1/1/1.png

幾種常見的地圖瓦片服務幾種常見的地圖瓦片服務

天地圖

wmts & wgs84 瓦片服務

  1. (1,0,0)

    http://t0.tianditu.gov.cn/img_c/wmts?tk=ddb2a0e2d71537a28548a2dc918b5ad0&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=c&TILEMATRIX=1&TILEROW=0&TILECOL=0&FORMAT=tiles

  2. (1,0,1)

    http://t0.tianditu.gov.cn/img_c/wmts?tk=ddb2a0e2d71537a28548a2dc918b5ad0&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=c&TILEMATRIX=1&TILEROW=0&TILECOL=1&FORMAT=tiles

    幾種常見的地圖瓦片服務幾種常見的地圖瓦片服務

wmts & web墨卡托 瓦片服務

  1. (1,0,0)

    http://t0.tianditu.gov.cn/img_w/wmts?tk=ddb2a0e2d71537a28548a2dc918b5ad0&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&TILEMATRIX=1&TILEROW=0&TILECOL=0&FORMAT=tiles

  2. (1,0,1)

    http://t0.tianditu.gov.cn/img_w/wmts?tk=ddb2a0e2d71537a28548a2dc918b5ad0&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&TILEMATRIX=1&TILEROW=0&TILECOL=1&FORMAT=tiles

  3. (1,1,0)

    http://t0.tianditu.gov.cn/img_w/wmts?tk=ddb2a0e2d71537a28548a2dc918b5ad0&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&TILEMATRIX=1&TILEROW=1&TILECOL=0&FORMAT=tiles

  4. (1,1,1)

    http://t0.tianditu.gov.cn/img_w/wmts?tk=ddb2a0e2d71537a28548a2dc918b5ad0&SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=img&STYLE=default&TILEMATRIXSET=w&TILEMATRIX=1&TILEROW=1&TILECOL=1&FORMAT=tiles

幾種常見的地圖瓦片服務幾種常見的地圖瓦片服務

高德地圖:Web墨卡托

  1. (1,0,0)

    http://webst04.is.autonavi.com/appmaptile?style=6&x=0&y=0&z=1

  2. (1,1,0)

    http://webst04.is.autonavi.com/appmaptile?style=6&x=1&y=0&z=1

  3. (1,0,1)

    http://webst04.is.autonavi.com/appmaptile?style=6&x=0&y=1&z=1

  4. (1,1,1)

    http://webst04.is.autonavi.com/appmaptile?style=6&x=1&y=1&z=1

幾種常見的地圖瓦片服務幾種常見的地圖瓦片服務

TMS 瓦片服務

<?xml version="1.0" ?>
<tilemap tilemapservice="http://tms.osgeo.org/1.0.0" version="1.0.0">
  <title>default</title>
  <abstract></abstract>
  <srs>EPSG:4326</srs>
  <vsrs></vsrs>
  <boundingbox maxx="180.0000000000000000000000000" maxy="90.0000000000000000000000000" minx="-180.0000000000000000000000000" miny="-90.0000000000000000000000000" />
  <origin x="-180.0000000000000000000000000" y="-90.0000000000000000000000000" />
  <tileformat extension="jpg" height="256" mime-type="image/jpeg" width="256" />
  <tilesets profile="global-geodetic">
    <tileset href="" order="0" units-per-pixel="0.7031250000000000000000000" />
    <tileset href="" order="1" units-per-pixel="0.3515625000000000000000000" />
    <tileset href="" order="2" units-per-pixel="0.1757812500000000000000000" />
    <tileset href="" order="3" units-per-pixel="0.0878906250000000000000000" />
    <tileset href="" order="4" units-per-pixel="0.0439453125000000000000000" />
    <tileset href="" order="5" units-per-pixel="0.0219726562500000000000000" />
    <tileset href="" order="6" units-per-pixel="0.0109863281250000000000000" />
    <tileset href="" order="7" units-per-pixel="0.0054931640625000000000000" />
    <tileset href="" order="8" units-per-pixel="0.0027465820312500000000000" />
    <tileset href="" order="9" units-per-pixel="0.0013732910156250000000000" />
    <tileset href="" order="10" units-per-pixel="0.0006866455078125000000000" />
    <tileset href="" order="11" units-per-pixel="0.0003433227539062500000000" />
    <tileset href="" order="12" units-per-pixel="0.0001716613769531250000000" />
    <tileset href="" order="13" units-per-pixel="0.0000858306884765625000000" />
    <tileset href="" order="14" units-per-pixel="0.0000429153442382812500000" />
    <tileset href="" order="15" units-per-pixel="0.0000214576721191406250000" />
    <tileset href="" order="16" units-per-pixel="0.0000107288360595703125000" />
    <tileset href="" order="17" units-per-pixel="0.0000053644180297851562500" />
    <tileset href="" order="18" units-per-pixel="0.0000026822090148925781250" />
    <tileset href="" order="19" units-per-pixel="0.0000013411045074462890625" />
    <tileset href="" order="20" units-per-pixel="0.0000006705522537231445313" />
    <tileset href="" order="21" units-per-pixel="0.0000003352761268615722656" />
    <tileset href="" order="22" units-per-pixel="0.0000001676380634307861328" />
  </tilesets>
  <dataextents>
    <dataextent maxlevel="5" maxx="180.0000000000000000000000000" maxy="90.0000000000000000000000000" minlevel="0" minx="-180.0000000000000000000000000" miny="-90.0000000000000000000000000" />
  </dataextents>
</tilemap>
           
  1. 第一級: 1x2x4=8=2*(4**1)=8
幾種常見的地圖瓦片服務幾種常見的地圖瓦片服務

2. 第二級:1x2x4x4=32=2*(4**2)=32

幾種常見的地圖瓦片服務幾種常見的地圖瓦片服務