mapproxy-util-autoconfig(1)
π mapproxy-util-autoconfig π
okay bestie, gather round, because this one is genuinely fun β it's the mapproxy-util-autoconfig page from the mapproxy-util-autoconfig(1) manual and it's literally about making MapProxy and MapProxy-seeding configurations out of thin air β¨
πΈ NAME πΈ
mapproxy-util-autoconfig β creates MapProxy and MapProxy-seeding configurations π«Ά
π SYNOPSIS π
mapproxy-util autoconfig [OPTIONS]
π¦ DESCRIPTION π¦
so basically, mapproxy-util autoconfig creates MapProxy and MapProxy-seeding configurations based on WMS capabilities documents that already exist. no cap, it just reads them and β¨generatesβ¨.
It creates a source for each available layer. The source will include a BBOX coverage from the layer extent, legendurl for legend graphics, featureinfo for querlyable layers, scale hints and all detected supported_srs. Then it duplicates the layer tree into the layers section of the MapProxy configuration, including the name, title and abstract. iconic behavior, honestly π
The tool will create a cache for each source layer and supported_srs if there is a grid configured in your --base configuration for that SRS. (yes, that's why --base slaps.)
The MapProxy layers will use the caches when available, otherwise they will use the source directly (cascaded WMS). both? both. it's giving resourceful πββοΈ
Note π The tool can help you create new configurations, but it can't predict how you will use the MapProxy services. The generated configuration can be highly inefficient, especially when multiple layers with separate caches are requested at once. Please make sure you understand the configuration and check the documentation for more options that are useful for your use-cases.
like fr fr, read your config before you ship it, that's the vibe check π
π OPTIONS π
--capabilitiesurl|filename β URL or filename of the WMS capabilities document. The tool will addREQUESTandSERVICEparameters to the URL as necessary. (it handles that for you, no stress π«Ά)--outputfilename β Filename for the created MapProxy configuration.--output-seedfilename β Filename for the created MapProxy-seeding configuration.--forceβ Overwrite any existing configuration with the same output filename. β οΈ bye bye old file--basefilename β Base configuration that should be included in the--outputfile with thebaseoption.--overwritefilename,--overwrite-seedfilename β YAML configuration that overwrites configuration options before the generated configuration is written to--output/--output-seed. (this is the main character of the second half of this page, keep reading π)
β¨ EXAMPLE β¨
Print configuration on console:
mapproxy-util autoconfig \
--capabilities http://osm.omniscale.net/proxy/service
Write MapProxy and MapProxy-seeding configuration to files:
mapproxy-util autoconfig \
--capabilities http://osm.omniscale.net/proxy/service \
--output mapproxy.yaml \
--output-seed seed.yaml
Write MapProxy configuration with caches for grids from base.yaml:
mapproxy-util autoconfig \
--capabilities http://osm.omniscale.net/proxy/service \
--output mapproxy.yaml \
--base base.yaml
π§ OVERWRITES π§
It's likely that you need to tweak the created configuration β e.g. to define another coverage, disable featureinfo, etc. You can do this by editing the output file of course, or you can modify the output by defining all changes to an overwrite file. Overwrite files are applied every time you call mapproxy-util autoconfig. every single time, bestie, it's a whole lifestyle π
Overwrites are YAML files that will be merged with the created configuration file.
The overwrites are applied independently for each services, sources, caches and layers section. That means, for example, that you can modify the supported_srs of a source and the tool will use the updated SRS list to decide which caches will be configured for that source. the way it just knows ππ
β¨ EXAMPLE β¨
Created configuration:
sources:
mysource_wms:
type: wms
req:
url: http://example.org
layers: a
Overwrite file:
sources:
mysource_wms:
supported_srs: ['EPSG:4326'] # add new value for mysource_wms
req:
layers: a,b # overwrite existing value
custom_param: 42 # new value
Actual configuration written to --output:
sources:
mysource_wms:
type: wms
supported_srs: ['EPSG:4326']
req:
url: http://example.org
layers: a,b
custom_param: 42
ate. no crumbs left π½οΈβ¨
π SPECIAL KEYS π
There are a few special keys that you can use in your overwrite file. these are the secret menu items, iykyk π€«
- All β The value of the
__all__key will be merged into all dictionaries. The following overwrite will addsessionidto thereqoptions of all sources:
sources:
__all__:
req:
sessionid: 123456789
- Extend β The values of keys ending with
__extend__will be added to existing lists.
To add another SRS for one source:
sources:
my_wms:
supported_srs__extend__: ['EPSG:31467']
- Wildcard β The values of keys starting or ending with three underscores (
___) will be merged with values where the key matches the suffix or prefix.
For example, to set levels for osm_webmercator and aerial_webmercator and to set refresh_before for osm_webmercator and osm_utm32:
seeds:
____webmercator:
levels:
from: 0
to: 12
osm____:
refresh_before:
days: 5
and that's the whole page, babe!! π mapproxy-util-autoconfig(1) β this is the 17 July 2026 edition, straight out of the mapproxy-util-autoconfig manual. go forth and autoconfig, you absolute legend ππ
β¨
π¦ where this page comes from
- ubuntu stonking: mapproxy 7.0.0+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms