10.5. GetFeatureInfo 操作

10.5.1. 1. KVP 格式请求

GetFeatureInfo 操作需要以下的参数:

参数

是否必须

默认值

SERVICE

WMTS

REQUEST=GetFeatureInfo

VERSION

1.0.0

GetTile 请求参数

I

J

INFOFORMAT

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

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

service=WMTS&

request=GetFeatureInfo&

version=1.0.0&

layer=coastlines&

style=default&

format=image/png&

TileMatrixSet=WholeWorld_CRS_84&TileMatrix=10m&TileRow=1&TileCol=3&

J=86&I=132&

InfoFormat=application/gml+xml; version=3.1

10.5.2. 2.SOAP格式请求

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

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

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

<soap:Body>

<GetFeatureInfo service="WMTS" version="1.0.0"

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

<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>

<J>86J>

<I>132I>

<InfoFormat>application/gml+xml; version=3.1InfoFormat>

GetFeatureInfo>

soap:Body>

soap:Envelope>

10.5.3. 3.RESTful格式请求

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

http://www.maps.bob/etopo2/ default/WholeWorld_CRS_84/10m/1/3/86/132.xml