Skip to content

Commit 3a4b2f1

Browse files
committed
Fix WMTSFacade provider
'style' query parameter is mandatory according to WMTS 1.0.0 standard. For backwards compatibility, empty string remains as default value.
1 parent 46eaaf5 commit 3a4b2f1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/source/publishing/ogcapi-tiles.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ This code block shows how to configure pygeoapi to read map tiles from a WMTS.
196196
options:
197197
wmts_layer: camb:hex350_grid_mental_1920 # the layer name of the wmts
198198
wmts_tile_matrix_set: WebMercatorQuad # the name of the tile matrix set of the wmts.
199+
wmts_style: camb:hex350_grid_mental_1920 # the style identifier of the wmts. Default to empty
199200
scheme: WebMercatorQuad # the aligning scheme in pygeoapi.
200201
zoom:
201202
min: 0

pygeoapi/provider/wmts_facade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def get_tiles(self, layer=None, tileset=None,
161161
'tileMatrix': z,
162162
'tileRow': y,
163163
'tileCol': x,
164-
'style': ''
164+
'style': self.options.get('wmts_style', '')
165165
}
166166

167167
if '?' in self.data:

0 commit comments

Comments
 (0)