Web Map Tile Service (WMTS)

Overview

Web Map Tile Service (WMTS) is an Open Geospatial Consortium (OGC) standard for serving pre-rendered, cached map tiles. Unlike Web Map Service (WMS) which renders maps on-demand, WMTS serves pre-generated tiles for faster performance and better scalability.

Key Concepts

ConceptDescription
TilePre-rendered image at a fixed size (typically 256x256 pixels)
Tile MatrixGrid of tiles at a specific zoom level
Tile Matrix SetCollection of tile matrices for all zoom levels
Tile PyramidHierarchical structure of tiles at different resolutions

Operations

GetCapabilities

Returns XML describing available layers and tile matrix sets.

GET /wmts?service=WMTS&version=1.0.0&request=GetCapabilities

GetTile

Returns a specific tile by layer, matrix, row, and column.

GET /wmts?service=WMTS&version=1.0.0&request=GetTile&layer=roads&style=default&format=image/png&TileMatrixSet=GoogleMapsCompatible&TileMatrix=12&TileRow=1234&TileCol=5678

URL Templates

WMTS supports RESTful URL templates for easier integration:

https://server.com/wmts/{layer}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png

Common patterns:

  • XYZ: /{z}/{x}/{y}.png (used by Leaflet, OpenLayers)
  • TMS: /{z}/{x}/{y}.png (y-axis inverted)
  • QuadKey: Single key encoding (Bing Maps)

Tile Matrix Sets

NameEPSGDescription
GoogleMapsCompatible3857Web Mercator (most common)
WorldCRS84Quad4326Geographic WGS84
UTMVariousUTM zone-based

Advantages over WMS

AspectWMTSWMS
PerformancePre-cached, fastOn-demand, slower
ScalabilityHighly scalableServer-intensive
FlexibilityFixed stylesDynamic styling
CachingBuilt-inOptional

Modern Alternatives

See Also


Appendix

Created: 2024-12-22 | Modified: 2024-12-22