这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@hschiebold
Copy link
Contributor

We would provide optional tms metadata KeywordList and ContactInformation for tms capabilities.
(https://wiki.osgeo.org/wiki/Tile_Map_Service_Specification)

We are doing it with code below since a few years for our customer.

i.e. https://via.bund.de/wsv/bwastr/tms/1.0.0

@hschiebold
Copy link
Contributor Author

This version expects simple space separated keyword_list param in tms md.
Otherwise we could use standard keyword_list with vocabulary simplified as space separated list with following snippet in tms_capabilities.xml

{{if service.keyword_list and len(service.keyword_list) > 0}}
{{for list in service.keyword_list}}{{py: kw=bunch(default='', **list)}}{{" ".join(map(lambda k : '"'+k+'"', kw.keywords))}}{{endfor}}
{{endif}}

@simonseyock
Copy link
Collaborator

Thanks for this work!

Can you please provide an example configuration with all provided keywords and add it to the documentation?

It should work as similar as possible to the wms metadata described here: https://mapproxy.github.io/mapproxy/latest/services.html#full-example

Could you also provide a very simple test here:

def test_tms_capabilities(self, app):

You only need to provide one metadata key and check for it's appearance in the result, I think that's enough to ensure the basic functionality of this feature.

@hschiebold
Copy link
Contributor Author

Added simple test and full example in doc for second approach with standard keyword_list (we would prefer). Should we notice in doc, that if no special service tms md block is provided the wms md entries are used by default?

@simonseyock
Copy link
Collaborator

simonseyock commented Sep 9, 2025

Yes that would be useful. It should go into a md section, just like for the use_grid_names option

Co-authored-by: Simon Seyock <8100558+simonseyock@users.noreply.github.com>
Copy link
Collaborator

@simonseyock simonseyock left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution!

@simonseyock simonseyock merged commit 30534a5 into mapproxy:master Oct 16, 2025
8 checks passed
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.

3 participants