gws.gis.cache.cli

Command-line cache commands.

Source code: gws.gis.cache.cli

Module Contents

class gws.gis.cache.cli.DropParams(*args, **kwargs)

Bases: FilterParamsWithGeom

Parameters of the cache drop command.

class gws.gis.cache.cli.FilterParams(*args, **kwargs)

Bases: gws.CliParams

Parameters that select caches.

cacheNames: list[str] | None

List of cache names or prefixes.

crs: list[int] | None

List of CRS codes.

layerUids: list[str] | None

List of layer IDs.

class gws.gis.cache.cli.FilterParamsWithGeom(*args, **kwargs)

Bases: FilterParams

Parameters that select caches, levels and an area.

bbox: list[float] | None

Bounding box [minx, miny, maxx, maxy].

levels: str = ''

Zoom levels (1,2,3 or 1-3).

wkt: str = ''

WKT geometry.

class gws.gis.cache.cli.Object

Bases: gws.Node

Command line commands for the tile cache.

do_cleanup(p: gws.CliParams)

Remove orphan cache directories.

do_drop(p: DropParams)

Remove cached tiles.

do_seed(p: SeedParams)

Seed the selected caches.

do_status(p: StatusParams)

Display the cache status.

class gws.gis.cache.cli.SeedParams(*args, **kwargs)

Bases: FilterParamsWithGeom

Parameters of the cache seed command.

concurrency: int | None

Number of concurrent seeding threads.

json: str = ''

Write json report to path.

maxAge: str = ''

Reseed tiles older than this duration (c.g. 1d, 0 to reseed all).

maxTime: int | None

Max. seeding time in seconds.

class gws.gis.cache.cli.StatusParams(*args, **kwargs)

Bases: FilterParams

Parameters of the cache status command.

details: bool = False

Print detailed status.

json: str = ''

Write json report to path.