You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a valid config should be generated, adding the md/attribution/url section to all layers.
Actual Behavior
python traceback, because layers is a list and not a dict ?
$mapproxy-util autoconfig --capabilities https://foo.bar/ortho --output=/tmp/ortho3.yaml --overwrite generated/overwrite_ortho.yaml --base=common/base.yaml --force
[2022-12-14 15:55:07,512] mapproxy.config - WARNING - Missing layers section
Traceback (most recent call last):
File "/usr/bin/mapproxy-util", line 33, in <module>
sys.exit(load_entry_point('MapProxy==1.13.0', 'console_scripts', 'mapproxy-util')())
File "/usr/lib/python3/dist-packages/mapproxy/script/util.py", line 387, in main
commands[command]['func'](args)
File "/usr/lib/python3/dist-packages/mapproxy/script/conf/app.py", line 171, in config_command
conf['layers'] = update_config(conf['layers'], overwrite.pop('layers', {}))
File "/usr/lib/python3/dist-packages/mapproxy/script/conf/utils.py", line 49, in update_config
for conf_k, conf_v in iteritems(conf):
File "/usr/lib/python3/dist-packages/mapproxy/compat/__init__.py", line 27, in iteritems
return d.items()
AttributeError: 'list' object has no attribute 'items'
I've also tried to use a list with:
layers:
- __all__:
but that didn't help.
Possible Fix
add to the documentation how to properly overload config for layers like cache and sources, which are working fine ?
Fix the code so that it supports overwriting layers ? add a corresponding test ?
Steps to Reproduce
using master, modify mapproxy/test/system/fixture/util-conf-overwrite.yaml to add a layers section:
Context
I'm trying to use
mapproxy-util autoconfig
with an overwrite file containing alayers
section:Expected Behavior
a valid config should be generated, adding the md/attribution/url section to all layers.
Actual Behavior
python traceback, because layers is a list and not a dict ?
I've also tried to use a list with:
but that didn't help.
Possible Fix
add to the documentation how to properly overload config for layers like cache and sources, which are working fine ?
Fix the code so that it supports overwriting layers ? add a corresponding test ?
Steps to Reproduce
mapproxy/test/system/fixture/util-conf-overwrite.yaml
to add a layers section:Context
Your Environment
The text was updated successfully, but these errors were encountered: