Skip to content

Commit 5854ad1

Browse files
committed
Improve and clarify WMS support
1 parent 2f2643b commit 5854ad1

File tree

5 files changed

+44
-2
lines changed

5 files changed

+44
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Added
1010

1111
- PMTiles
12+
- New property `wms:transparent` for WMS
1213

1314
### Changed
1415

1516
- The `type` for WMS and WMTS links should be set to the image media type that the client should request for tiles.
17+
- WMS supports only v1.3.0 of the specification
1618

1719
### Deprecated
1820

1921
### Removed
2022

2123
### Fixed
2224

25+
- WMS: Clarified the behavior of `wms:layers` and `wms:styles`
26+
2327
## [1.2.0]
2428

2529
### Added

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Links to a [3D Tiles](https://docs.ogc.org/cs/18-053r2/18-053r2.html) implementa
4848

4949
### OGC WMS
5050

51-
Links to a [OGC Web Map Service](https://www.ogc.org/standards/wms) (WMS) implementation (versions 1.x).
51+
Links to a [OGC Web Map Service](https://www.ogc.org/standards/wms) (WMS) implementation (versions 1.3.0).
5252
Only (tiled) "Basic WMS" is supported at this time.
5353

5454
| Field Name | Type | Description |
@@ -59,6 +59,14 @@ Only (tiled) "Basic WMS" is supported at this time.
5959
| wms:layers | \[string] | **REQUIRED**. The layers to show on the map by default. Can't be empty. |
6060
| wms:styles | \[string] | The styles to show on the map by default. If not provided or empty, an empty string will be used for the query parameter. |
6161
| wms:dimensions | Map\<string, string> | Any additional dimension parameters to add to the request as query parameters (e.g. the dimensions `TIME` or `ELEVATION`). |
62+
| wms:transparent | boolean | Sets whether the layers should be rendered transparent or not. Default: `false` |
63+
64+
If you provide multiple array elements in `wms:layers` (e.g. `["layerA", "layerB"]`),
65+
each should occur in a separate layer in the mapping library so that requests for the layers are sent.
66+
If you want to send multiple layers in a single request, provide them as a string with comma-separated values: `["layerA,layerB"]`.
67+
`wms:layers` and `wms:styles` work in parallel, so the first style in the array will be used for the first layer, etc.
68+
69+
- [More details on the mapping between WMS query parameters and the STAC fields](./wms.md)
6270

6371
### OGC WMTS
6472

@@ -73,6 +81,9 @@ Links to a [OGC Web Map Tile Service](https://www.ogc.org/standards/wmts) (WMTS)
7381
| wmts:layer | string\|\[string] | **REQUIRED**. The layers to show on the map by default, either a list of layer names or a single layer name. |
7482
| wmts:dimensions | Map\<string, string> | Any additional dimension parameters to add to the request as key-value-pairs, usually added as query parameters. |
7583

84+
If you provide multiple array elements in `wmts:layer` (e.g. `["layerA", "layerB"]`),
85+
each should occur in a separate layer in the mapping library so that individual requests for the layers are sent.
86+
7687
#### href
7788

7889
For WMTS, the `href` is pointing to the URL of the Capabilities document, but without the query parameters for the Capabilities request.

examples/item.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@
6464
"title": "RGB composite visualized through a WMS",
6565
"wms:layers": [
6666
"rgb"
67-
]
67+
],
68+
"wms:transparent": true
6869
},
6970
{
7071
"href": "https://maps.example.com/xyz/{z}/{x}/{y}.jpg",

json-schema/schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@
138138
"additionalProperties": {
139139
"type": "string"
140140
}
141+
},
142+
"wms:transparent": {
143+
"type": "boolean"
141144
}
142145
}
143146
}

wms.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OGC WMS
2+
3+
## Mapping between STAC and the WMS GetMap parameters
4+
5+
| Request Parameter | Mandatory | Description | Mapping / Implementation guide |
6+
| --------------------------- | --------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
7+
| VERSION=1.3.0 | Yes | Request version. | Always `1.3.0` - We assume everyone supports 1.3.0 today. |
8+
| REQUEST=GetMap | Yes | Request name. | Always `GetMap`. |
9+
| LAYERS=layer_list | Yes | Comma-separated list of one or more map layers. | via `wms:layers`, one layer in the mapping library per array element |
10+
| STYLES=style_list | Yes | Comma-separated list of one rendering style per requested layer. | via `wms:styles`, 1:1 mapping to `wms:layers` |
11+
| CRS=namespace:identifier | Yes | Coordinate reference system. | determined by mapping library, usually EPSG:3857 |
12+
| BBOX=minx,miny,maxx,maxy | Yes | Bounding box corners (lower left, upper right) in CRS units. | determined by mapping library |
13+
| WIDTH=output_width | Yes | Width in pixels of map picture. | determined by mapping library |
14+
| HEIGHT=output_height | Yes | Height in pixels of map picture. | determined by mapping library |
15+
| FORMAT=output_format | Yes | Output format of map. | via `type` |
16+
| TRANSPARENT=TRUE\|FALSE | No | Background transparency of map (default=FALSE). | via `wms:transparent` |
17+
| BGCOLOR=color_value | No | Hexadecimal red-green-blue colour value for the background color (default=0xFFFFFF). | not supported, some libraries may support setting it via `wms:dimensions` |
18+
| EXCEPTIONS=exception_format | No | The format in which exceptions are to be reported by the WMS (default=XML). | determined by mapping library |
19+
| TIME=time | No | Time value of layer desired. | via `wms:dimensions` |
20+
| ELEVATION=elevation | No | Elevation of layer desired. | via `wms:dimensions` |
21+
| Other sample dimension(s) | No | Value of other dimensions as appropriate. | via `wms:dimensions` |
22+
23+
Columns 1-3 are coming from the [OGC WMS specification, version 1.3.0](https://portal.ogc.org/files/?artifact_id=14416), chapter 7.3.2.

0 commit comments

Comments
 (0)