|
1 | | -# Template Extension Specification |
| 1 | +# Web Map Links Extension Specification |
2 | 2 |
|
3 | | -- **Title:** Template |
4 | | -- **Identifier:** <https://stac-extensions.github.io/template/v1.0.0/schema.json> |
5 | | -- **Field Name Prefix:** template |
6 | | -- **Scope:** Item, Collection |
| 3 | +- **Title:** Web Map Links |
| 4 | +- **Identifier:** <https://stac-extensions.github.io/web-map-links/v1.0.0/schema.json> |
| 5 | +- **Field Name Prefix:** none, but each relation type has potentially a distinct prefix for additional data (e.g. `wmts`) |
| 6 | +- **Scope:** Item, Catalog, Collection |
7 | 7 | - **Extension [Maturity Classification](https://github.com/radiantearth/stac-spec/tree/master/extensions/README.md#extension-maturity):** Proposal |
8 | | -- **Owner**: @your-gh-handles @person2 |
| 8 | +- **Owner**: @m-mohr |
9 | 9 |
|
10 | | -This document explains the Template Extension to the [SpatioTemporal Asset Catalog](https://github.com/radiantearth/stac-spec) (STAC) specification. |
11 | | -This is the place to add a short introduction. |
| 10 | +This document explains the Web Map Links Extension to the |
| 11 | +[SpatioTemporal Asset Catalog](https://github.com/radiantearth/stac-spec) (STAC) specification. |
| 12 | +It allows to provide links to web maps for visualization purposes. Currently, OGC WMTS and XYZ are supported. |
12 | 13 |
|
13 | 14 | - Examples: |
14 | 15 | - [Item example](examples/item.json): Shows the basic usage of the extension in a STAC Item |
15 | 16 | - [Collection example](examples/collection.json): Shows the basic usage of the extension in a STAC Collection |
16 | 17 | - [JSON Schema](json-schema/schema.json) |
17 | 18 | - [Changelog](./CHANGELOG.md) |
18 | 19 |
|
19 | | -## Item Properties and Collection Fields |
| 20 | +## Link Object Fields |
20 | 21 |
|
21 | | -| Field Name | Type | Description | |
22 | | -| -------------------- | ------------------------- | ----------- | |
23 | | -| template:new_field | string | **REQUIRED**. Describe the required field... | |
24 | | -| template:xyz | [XYZ Object](#xyz-object) | Describe the field... | |
25 | | -| template:another_one | \[number] | Describe the field... | |
| 22 | +This extension only extends the [Link Object](https://github.com/radiantearth/stac-spec/tree/master/item-spec/item-spec.md#link-object) |
| 23 | +used in all STAC entities (Catalogs, Collections, Items). It requires specific relation types to be set for the `rel` field in the |
| 24 | +Link Object. |
26 | 25 |
|
27 | | -### Additional Field Information |
| 26 | +### OGC WMTS |
28 | 27 |
|
29 | | -#### template:new_field |
| 28 | +Links to a [OGC Web Map Tile Service](https://www.ogc.org/standards/wmts) (WMTS) implementation (versions 1.x). |
30 | 29 |
|
31 | | -This is a much more detailed description of the field `template:new_field`... |
| 30 | +| Field Name | Type | Description | |
| 31 | +| --------------- | -------------------- | ----------- | |
| 32 | +| rel | string | **REQUIRED**. Must be set to `wmts`. | |
| 33 | +| href | string | **REQUIRED**. Link to the WMTS, without any WMTS specific query parameters. | |
| 34 | +| wmts:layer | string\|\[string] | **REQUIRED**. The layers to show on the map, either a list of layer names or a single layer name. | |
| 35 | +| wmts:dimensions | Map\<string, string> | Any additional dimension parameters to add to the request, usually added as query parameters. | |
32 | 36 |
|
33 | | -### XYZ Object |
| 37 | +### XYZ |
34 | 38 |
|
35 | | -This is the introduction for the purpose and the content of the XYZ Object... |
| 39 | +Links to a XYZ, also known as slippy map. |
36 | 40 |
|
37 | | -| Field Name | Type | Description | |
38 | | -| ----------- | ------ | ----------- | |
39 | | -| x | number | **REQUIRED**. Describe the required field... | |
40 | | -| y | number | **REQUIRED**. Describe the required field... | |
41 | | -| z | number | **REQUIRED**. Describe the required field... | |
42 | | - |
43 | | -## Relation types |
44 | | - |
45 | | -The following types should be used as applicable `rel` types in the |
46 | | -[Link Object](https://github.com/radiantearth/stac-spec/tree/master/item-spec/item-spec.md#link-object). |
47 | | - |
48 | | -| Type | Description | |
49 | | -| ------------------- | ----------- | |
50 | | -| fancy-rel-type | This link points to a fancy resource. | |
| 41 | +| Field Name | Type | Description | |
| 42 | +| --------------- | -------------------- | ----------- | |
| 43 | +| rel | string | **REQUIRED**. Must be set to `xyz`. | |
| 44 | +| href | string | **REQUIRED**. Link to the XYZ as a templates URI. MUST include the following placeholders: `{x}`, `{y}` and `{z}`. MAY include a placeholder for the server: `{s}` | |
| 45 | +| xyz:servers | array | REQUIRED if `{s}` is used in the `href`. A list of allowed values for the placeholder `{s}`. | |
51 | 46 |
|
52 | 47 | ## Contributing |
53 | 48 |
|
|
0 commit comments