10.4. GetTile 操作

10.4.1. 1. KVP 格式请求

GetTile 操作需要以下的参数:

参数

是否必须

默认值

SERVICE

WMTS

REQUEST=GetTile

VERSION

1.0.0

LAYER

STYLE

FORMAT

TILEMATRIXSET

TILEMATRIX

TILEROW

TILECOL

Sample dimensions 参数

以下是一个WMTS使用KVP格式的GetTile操作示例:

http://www.maps.bob/maps.cgi?

service=WMTS&

request=GetTile&

version=1.0.0&

layer=etopo2&

style=default&

format=image/png&

TileMatrixSet=WholeWorld_CRS_84&

TileMatrix=10m&

TileRow=1&

TileCol=3

10.4.2. 2.SOAP格式请求

以下是一个WMTS使用SOAP格式的GetTile操作示例:

<?xml version="1.0" encoding="UTF-8"?>

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">

<soap:Body>

<GetTile service="WMTS" version="1.0.0"

xmlns="http://www.opengis.net/wmts/1.0">

<Layer>etopo2Layer>

<Style>defaultStyle>

<Format>image/pngFormat>

<TileMatrixSet> WholeWorld_CRS_84TileMatrixSet>

<TileMatrix>10mTileMatrix>

<TileRow>1TileRow>

<TileCol>3TileCol>

GetTile>

soap:Body>

soap:Envelope>

10.4.3. 3.RESTful格式请求

以下是一个WMTS使用RESTful格式的GetTile操作示例:

http://www.maps.bob/etopo2/default/WholeWorld_CRS_84/10m/1/3.png