Skip to content

Conversation

@Dolite
Copy link

@Dolite Dolite commented Nov 24, 2025

'style' query parameter is mandatory according to WMTS 1.0.0 standard. For backwards compatibility, empty string remains as default value.

Overview

Related Issue / discussion

Additional information

Dependency policy (RFC2)

  • I have ensured that this PR meets RFC2 requirements

Updates to public demo

Contributions and licensing

(as per https://github.com/geopython/pygeoapi/blob/master/CONTRIBUTING.md#contributions-and-licensing)

  • I'd like to contribute bugfix to pygeoapi. I confirm that my contributions to pygeoapi will be compatible with the pygeoapi license guidelines at the time of contribution
  • I have already previously agreed to the pygeoapi Contributions and Licensing Guidelines

'style' query parameter is mandatory according to WMTS 1.0.0 standard. For
backwards compatibility, empty string remains as default value.
@doublebyte1 doublebyte1 added the enhancement New feature or request label Dec 2, 2025
Copy link
Contributor

@doublebyte1 doublebyte1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Dolite Thank You for this enhancement to the provider, by exposing the style parameter, which currently is set to ' ' . When this parameter is empty, the server always fallbacks to the default style; In my comment I suggest you update the description on the documentation to make this behaviour more clear.

Please note that this is not a bug, as the provider does not necessarily need to expose all the mandatory parameters of WMTS; I think keeping it optional, as you did, is a good idea; to support backwards compatibility and also to make configuration easier for the users.

options:
wmts_layer: camb:hex350_grid_mental_1920 # the layer name of the wmts
wmts_tile_matrix_set: WebMercatorQuad # the name of the tile matrix set of the wmts.
wmts_style: camb:hex350_grid_mental_1920 # the style identifier of the wmts. Default to empty
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Default to empty"-> "if empty or this key is missing, it falls back to the default style."

'tileMatrix': z,
'tileRow': y,
'tileCol': x,
'style': ''
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current code base is passing the mandatory "style" parameter to WMTS, but not exposing it to the user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants