Skip to content

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

Open
doublebyte1 wants to merge 2 commits into
geopython:masterfrom
doublebyte1:templating
Open

doublebyte1 wants to merge 2 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

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant