Skip to content

Commit 44c40e0

Browse files
committed
Clarify Tile-variables, add WMTS REST example
1 parent 7de39a6 commit 44c40e0

File tree

3 files changed

+63
-4
lines changed

3 files changed

+63
-4
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@ This describes the REST request encoding, which provides a URL template with var
115115
| uriTemplate | string | Can override the URL template from the capabilities document with a custom version that can be customized with the `variables` provided. |
116116
| variables | Map\<string, \*> | This object contains one key per substitution variable in the `urlTemplate`. |
117117

118-
**variables**: This object may provide a JSON Schema definition for any variable defined in the `uriTemplate`, allowing to provide the default value for the specific STAC resource or the specification of ranges or other constraints.
118+
**variables**: This object may provide a JSON Schema definition for any variable defined in the `uriTemplate`,
119+
allowing to provide the default value for the specific STAC resource or the specification of ranges or other constraints.
120+
121+
The variables `{TileMatrixSet}`, `{TileMatrix}`, `{TileRow}`, `{TileCol}` do not need to be provided
122+
explicitly in the `variables` as they can be determined from the capabilities.
123+
Nevertheless, the corresponding variables can be provided if they should be further restricted to certain values or other contraints.
119124

120125
Providing a reasonable default value for all variables is strongly recommended as they
121126
are likely to be used for a default visualization.

examples/collection.json

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,35 @@
4242
"href": "https://maps.example.com/wmts",
4343
"rel": "wmts",
4444
"type": "image/png",
45-
"title": "RGB composite visualized through a WMTS",
46-
"wmts:layer": "rgb",
45+
"title": "Mosaic visualized through a WMTS (KVP)",
46+
"wmts:layer": "mosaic",
4747
"wmts:dimensions": {
48-
"time": "2022-01-01"
48+
"time": 2025
49+
}
50+
},
51+
{
52+
"href": "https://maps.example.com/wmts/WMTSCapabilities.xml",
53+
"rel": "wmts",
54+
"type": "application/xml",
55+
"title": "Mosaic visualized through a WMTS (REST)",
56+
"wmts:encoding": "rest",
57+
"wmts:layer": "mosaic",
58+
"uriTemplate": "https://maps.example.com/wmts/rest/mosaic/{time}/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png",
59+
"variables": {
60+
"style": {
61+
"type": "string",
62+
"enum": [
63+
"rgb",
64+
"grayscale"
65+
],
66+
"default": "rgb"
67+
},
68+
"time": {
69+
"type": "integer",
70+
"minimum": 2015,
71+
"maximum": 2026,
72+
"default": 2025
73+
}
4974
}
5075
},
5176
{

examples/item.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,35 @@
5757
"satellite"
5858
]
5959
},
60+
{
61+
"href": "https://maps.example.com/wmts",
62+
"rel": "wmts",
63+
"type": "image/png",
64+
"title": "Mosaic visualized through a WMTS (KVP)",
65+
"wmts:layer": "mosaic",
66+
"wmts:dimensions": {
67+
"time": 2025
68+
}
69+
},
70+
{
71+
"href": "https://maps.example.com/wmts/WMTSCapabilities.xml",
72+
"rel": "wmts",
73+
"type": "application/xml",
74+
"title": "Mosaic visualized through a WMTS (REST)",
75+
"wmts:encoding": "rest",
76+
"wmts:layer": "mosaic",
77+
"uriTemplate": "https://maps.example.com/wmts/rest/mosaic/2025/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png",
78+
"variables": {
79+
"style": {
80+
"type": "string",
81+
"enum": [
82+
"rgb",
83+
"grayscale"
84+
],
85+
"default": "rgb"
86+
}
87+
}
88+
},
6089
{
6190
"href": "https://maps.example.com/wms",
6291
"rel": "wms",

0 commit comments

Comments
 (0)