3liz / qgis-server-wmts-cache-plugin

plugin QGIS Server de cache pour tuile WMTS
6 stars 1 forks source link
cache python qgis-server qgis-server-plugin wmts

Cache WMTS

Cache disk QGIS server plugin for WMTS tiles

WMTS tile parameters

See https://georezo.net/wiki/main/standards/wmts

Plugin configuration

The plugin is configured with environment variables:

QGIS_WMTS_CACHE_ROOTDIR

Root directory for cached data

Default to: tempfile.getmpdir()/org.qgis.wmts/

QGIS_WMTS_CACHE_LAYOUT

Storage layout for tiles

Possible values: tc,mp,tms,reverse_tms

Default value: tc

Layouts

The layout must be chosen according to the expected size of the cache: more the cache contains elements, more the number of directory levels must be important.

CLI manager Installation

A cli manager command may be installed in the python environment using standard setuptools/pip installation.

Once installed, the wmtscache cache command can be used to manage the cache content:

WMTS Cache manager API

The WMTS Cache manager API provides these URLs:

To delete some cache, you have to use Delete HTTP method over the dedicated URL.