1. TileMatrixSet
本质是定义一种切片方案
supportedCRS
TileMatrixSet支持的坐标系统(如urn:ogc:def:crs:EPSG::4326
代表纬度、经度顺序的WGS84
; urn:ogc:def:crs:OGC:2:84
代表经度、纬度顺序的WGS84
;城建坐标没有EPSG代码,所以用urn:ogc:def:crs:EPSG::0
代表)
boundingBox
Supported CRS下的坐标范围
2. TileMatrix
切片方案中的一个层级
ScaleDenominator
0.28mm代表的像素值
topLeftCorner
左上角坐标(相当于原点坐标)
MatrixWidth
X方向的瓦片数
MatrixHeight
Y方向上的瓦片数
如何计算单个像素代表的长度(米):
pixelSpan(相当于mapserver中的resolution) = scaleDenominator × 0.28 10-3 / metersPerUnit(crs);
其中metersPerUnit取决于坐标系统,投影坐标系一般单位是米,所以metersPerUnit=1;地理坐标系统单位为°,所以metersPerUnit为每一度的米数
3. Layer
TileMatrixSetLink
指定该layer所使用的TileMatrixSet,包含:
TileMatrixSet
所使用TileMatrixSet的identifieir
TileMatrixSetLimits
针对该图层的tileMatrixSet的索引值范围;比如中国地区的一个地图服务,如果使用的tileMatrixSet是全球范围的,可以用该属性制定只使用其中的东半球部分的切片
wgs84BoundingBox
经纬度范围
boundingBox
Supported CRS坐标系下的范围
4. WMTS Capabilities
ServiceIdentification
服务基本信息
ServiceProvider
服务提供者信息
OperationsMetadata
可用的操作(request),如GetTile
,GetCapabilities
, GetFeatureInfo
等
Contents
包含该服务所有的TileMatrixSet
和Layer