Skip to content

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

Closed
doublebyte1 wants to merge 6 commits into
uncover-agentfrom
uncover-agent-2353254187
Closed

doublebyte1 wants to merge 6 commits into
uncover-agentfrom
uncover-agent-2353254187

Conversation

@doublebyte1

Copy link
Copy Markdown
Owner

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

geopython#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

  • Original PR: Apply templates to the TileMatrixSets and TileMatrixSet resources. geopython/pygeoapi#2423

  • Reproduced automatically by test_create_prs.py to exercise the Detect AI workflow.

  • Example kind: human

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