几种常见的地图瓦片服务
按投影类型分为 WGS84 (EPSG:4326)和Web墨卡托(EPSG:3857)。WGS84 属于椭球体便于计算量测,常用于GPS或其他测图相关;Web墨卡托属于标准的球体,便于显示,常用于Web地图显示。
- WGS84 (EPSG:4326)瓦片规则:
- Web墨卡托瓦片规则:
按照服务类型分为:WMTS 和TMS。
OpenStreetMap
Web墨卡托投影
瓦片规则
-
(0,0,0)
https://a.tile.openstreetmap.org/0/0/0.png
-
(1,0,0)
https://a.tile.openstreetmap.org/1/0/0.png
-
(1,1,0)
https://a.tile.openstreetmap.org/1/1/0.png
-
(1,0,1)
https://a.tile.openstreetmap.org/1/0/1.png
-
(1,1,1)
https://a.tile.openstreetmap.org/1/1/1.png
天地图
wmts & wgs84 瓦片服务
-
(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
-
(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,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
-
(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
-
(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
-
(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,0,0)
http://webst04.is.autonavi.com/appmaptile?style=6&x=0&y=0&z=1
-
(1,1,0)
http://webst04.is.autonavi.com/appmaptile?style=6&x=1&y=0&z=1
-
(1,0,1)
http://webst04.is.autonavi.com/appmaptile?style=6&x=0&y=1&z=1
-
(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>
- 第一级: 1x2x4=8=2*(4**1)=8
2. 第二级:1x2x4x4=32=2*(4**2)=32