The MapProxy creates all tiles on demand. To improve the performance for commonly requested views it is possible to pre-generate these tiles. The mapproxy-seed script does this task.


mapproxy-seed is a new version of the seed tool. The old proxy_seed tool is deprecated and will be removed in 0.9.0. The configuration is upward compatible.


The command line script expects a seed configuration that describes which tiles from which layer should be generated. See configuration for the format of the file.

Use the -f option to specify the proxy configuration.

mapproxy-seed -f etc/proxy.yaml etc/seed.yaml


The configuration contains two keys: views and seeds. views describes geographical extends that should be seeded. seeds links actual layers with those views.


Contains a dictionary with layer/view mapping.:

        views: ['world', 'germany', 'oldb']
        views: ['world', 'germany']
            time: '2009-04-01T14:45:00'
            # or
            minutes: 15
            hours: 4
            days: 9
            weeks: 8

If present, recreate tiles if they are older than the date or time delta. At the end of the seeding process all tiles that are older will be removed.

You can either define a fixed time or a time delta. The time is a ISO-like date string (no time-zones, no abbreviations). To define time delta use one or more minutes, hours, days, weeks entries.


Contains a dictionary with all views. Each view describes a geographical extend.

Geographical extend

There are three different ways to describe the extend of the seed view.

  • a simple rectangular bounding box,
  • a text file with one or more polygons in WKT format,
  • polygons from any data source readable with OGR (e.g. Shapefile, PostGIS)


The last two variants require Shapely. Make sure it is available (e.g. pip install Shapely). Shapely itself needs GEOS and the OGR reader needs GDAL/OGR. On Debian/Ubuntu these libraries are in the libgeos-dev and libgdal-dev packages.

Bounding box
The BBOX that should be cached. If omitted, the whole BBOX of the layer is used.
The SRS of the BBOX.
Polygon file

New in version 0.8.3.

Path to a text file with one WKT polygon per line. The path should be relative to the proxy configuration or absolute. We provide polygons for every country. Read the index to find your country. You can use these or create your own.
The SRS of the polygons.
OGR datasource

New in version 0.8.3.

The name of the datasource. Refer to the OGR format page for a list of all supported datasources. File paths should be relative to the proxy configuration or absolute.
Restrict which polygons should be loaded from the datasource. Either a simple where statement (e.g. ‘CNTRY_NAME=”Germany”’) or a full select statement. Refer to the OGR SQL support documentation. If this option is unset, the first layer from the datasource will be used.
The SRS of the polygons.

Other options

A list with SRSs. If the layer contains caches for multiple SRS, only the caches that match one of the SRS in this list will be seeded.
Seed until this resolution is cached.


A number until which this layer is cached, or a tuple with a range of levels that should be cached.


    world: # cache whole layer from level 0 to 3
        level: 3
    germany: # seed a fixed bbox, from level 4 to 10
        bbox:  [5.40731, 46.8447, 15.5072, 55.4314]
        bbox_srs: EPSG:4326
        level: (4, 10)
    oldb: # seed around bbox until resolution of 4m/px
        bbox: [904500, 7000800, 925700, 7020400]
        bbox_srs: EPSG:900913
        srs: ['EPSG:4326', 'EPSG:900913']
        res: 4

Table Of Contents

Previous topic


Next topic

Configuration examples

This Page