mapproxy-seed1
Pre-generate tiles for mapproxy
Usage
FCmapproxy-seedF [0]
[OPTIONS]
Overview
mapproxy-seed pre-generates tiles for MapProxy to improve the performance for commonly requested views, because MapProxy creates all tiles on demand otherwise.
The tool can seed one or more polygon or BBOX areas for each cached layer.
MapProxy does not seed the tile pyramid level by level, but traverses the tile pyramid depth-first, from bottom to top. This is optimized to work with the caches of your operating system and geospatial database, and not against.
Options
- FC
-sF[0] seed.yaml, FC--seed-confF[0] seed.yaml -
The seed configuration. You can also pass the configuration as the last argument to
mapproxy-seed.
- FC
-fF[0] mapproxy.yaml, FC--proxy-confF[0] mapproxy.yaml -
The MapProxy configuration to use. This file should describe all caches and grids that the seed configuration references.
- FC
-cF[0] N, FC--concurrencyF[0] N -
The number of concurrent seed worker. Some parts of the seed tool are CPU intensive (image splitting and encoding), use this option to distribute that load across multiple CPUs. To limit the concurrent requests to the source WMS see FCwms_source_concurrent_requests_labelF[0].
- FC
-nF[0], FC--dry-runF[0] -
This will simulate the seed/cleanup process without requesting, creating or removing any tiles.
- FC
--summaryF[0] -
Print a summary of all seeding and cleanup tasks and exit.
- FC
-iF[0], FC--interactiveF[0] -
Print a summary of each seeding and cleanup task and ask if
mapproxy-seedshould seed/cleanup that task. It will query for each task before it starts.
- FC
--seedF[0] task1,task2,.. -
Only seed the named seeding tasks. You can select multiple tasks with a list of comma separated names, or you can use the FC
--seedF[0] option multiple times. You can use FCALLF[0] to select all tasks. This disables all cleanup tasks unless you also use the FC--cleanupF[0] option.
- FC
--cleanupF[0] task1,task2,.. -
Only cleanup the named tasks. You can select multiple tasks with a list of comma separated names, or you can use the FC
--cleanupF[0] option multiple times. You can use FCALLF[0] to select all tasks. This disables all seeding tasks unless you also use the FC--seedF[0] option.
- FC
--continueF[0] -
Continue an interrupted seed progress. MapProxy will start the seeding progress at the beginning if the progress file (FC
--progress-fileF[0]) was not found. MapProxy can only continue if the previous seed was started with the FC--progress-fileF[0] or FC--continueF[0] option.
- FC
--progress-fileF[0] -
Filename where MapProxy stores the seeding progress for the FC
--continueF[0] option. Defaults to FC.mapproxy_seed_progressF[0] in the current working directory. MapProxy will remove that file after a successful seed.
- FC
--durationF[0] -
Stop seeding process after this duration. This option accepts duration in the following format: 120s, 15m, 4h, 0.5d Use this option in combination with FC
--continueF[0] to be able to resume the seeding.
- FC
--reseed-fileF[0] -
File created by
mapproxy-seedat the start of a new seeding.
- FC
--reseed-intervalF[0] -
Only start seeding if FC
--reseed-fileF[0] is older then this duration. This option accepts duration in the following format: 120s, 15m, 4h, 0.5d Use this option in combination with FC--continueF[0] to be able to resume the seeding.
- FC
--use-cache-lockF[0] -
Lock each cache to prevent multiple parallel
mapproxy-seedcalls to work on the same cache. It does not lock normal operation of MapProxy.
- FC
--log-configF[0] -
The logging configuration file to use.
Examples
Seed with concurrency of 4:
FC
mapproxy-seed -f mapproxy.yaml -c 4 seed.yaml
F[0]
Print summary of all seed tasks and exit:
FC
mapproxy-seed -f mapproxy.yaml -s seed.yaml --summary --seed ALL
F[0]
Interactively select which tasks should be seeded:
FC
mapproxy-seed -f mapproxy.yaml -s seed.yaml -i
F[0]
Seed task1 and task2 and cleanup task3 with concurrency of 2:
FC
mapproxy-seed -f mapproxy.yaml -s seed.yaml -c 2 --seed task1,task2 \
--cleanup task3
F[0]
History
- Debian 13 (Trixie): the text shown here
- Debian 12 (Bookworm)
- Debian 11 (Bullseye)
- Debian 10 (Buster)
- Debian 9 (Stretch)