Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autoconfig creates invalid configuration #576

Open
4DFuchs opened this issue May 11, 2022 · 1 comment
Open

autoconfig creates invalid configuration #576

4DFuchs opened this issue May 11, 2022 · 1 comment
Labels

Comments

@4DFuchs
Copy link

4DFuchs commented May 11, 2022

Hello,
I created via mapproxy-util autoconfig a configuration for alpenplan-wms, but the given yaml-config is invalid.
When I start mapproxy-util serve-develop the error "source/cache ... not found" occured.

I think this happens because source- and layername can be concat via :

source_name, layers = source_name.split(':', 1)

source_name, _ = source_name.split(':', 1)

But when the Capabilities-XML returns a Name which contains : this char will not replaced here:

sources[name+'_wms'] = conf

or here:

conf['sources'] = [layer['name'] + '_wms']

@weskamm
Copy link
Member

weskamm commented Jun 8, 2022

I think your findings are correct. While using a : in a WMS name may not be the best idea, it should still be valid i think.
Maybe you can create a fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants