Skip to content

Apply templates to the TileMatrixSets and TileMatrixSet resources. - #2423

Merged
tomkralidis merged 3 commits into
geopython:masterfrom
doublebyte1:templating
Oct 29, 2026
Merged

tomkralidis merged 3 commits into
geopython:masterfrom
doublebyte1:templating

Conversation

@doublebyte1

@doublebyte1 doublebyte1 commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Unlike other endpoints, the TileMatrixSets and TileMatrixSet endpoints don't have a dataset associated and thus this call is not applied:

tpl_config = api.get_dataset_templates(dataset)

Instead, the entire API configuration (api.tpl_config) is passed as the template configuration. As it fails it falls back to default template, ignoring the custom theme. This PR fixes that, by explicitly applying the templates.

Related Issue / discussion

#2422

Additional information

Screenshot from 2026-09-29 13-18-25 Screenshot from 2026-09-29 13-18-30

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 [feature X|bugfix Y|docs|something else] 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

@doublebyte1 doublebyte1 changed the title - Apply templates to the TileMatrixSets and TileMatrixSet resources. Apply templates to the TileMatrixSets and TileMatrixSet resources. Sep 29, 2026
@github-actions github-actions Bot added the Human generated Label for the detect-ai workflow classifier label Oct 29, 2026
@tomkralidis tomkralidis added this to the 0.25.0 milestone Oct 29, 2026
@tomkralidis tomkralidis added bug Something isn't working OGC API - Tiles OGC API - Tiles labels Oct 29, 2026
@tomkralidis tomkralidis self-assigned this Oct 29, 2026
@tomkralidis
tomkralidis merged commit 0fb7b98 into geopython:master Oct 29, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Human generated Label for the detect-ai workflow classifier OGC API - Tiles OGC API - Tiles

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants