gws.plugin.qgis.layer

The qgis layer.

Source code: gws.plugin.qgis.layer

Module Contents

class gws.plugin.qgis.layer.Config

Bases: gws.base.layer.Config, gws.base.layer.tree.Config

Layer group that shows a QGIS project as a tree of its layers.

compositeRender: bool = False

Render all sublayers as one image instead of one image per layer.

provider: Config.provider | None

QGIS project the layers are loaded from.

sqlFilters: dict | None

SQL filters for source layers, passed to QGIS Server.

class gws.plugin.qgis.layer.Object

Bases: gws.base.layer.group.Object

Group layer that shows a QGIS project as a tree of layers.

The child layers are created from the project layer tree. With compositeRender, the layer renders its visible children as one image.

compositeRender: bool = False

Render all visible sublayers as one image.

provider: Object.provider

QGIS provider.

sqlFilters: dict

SQL filters passed to the child layers, mapping a source layer name (or *) to a filter expression.

composite_render_params(lri: gws.LayerRenderInput) → dict | None

Build the GetMap parameters for a composite render.

The parameters combine LAYERS and FILTER of the qgisflat descendants listed in compositeLayerUids of the extra render parameters. Layers the user cannot read are skipped.

Parameters:

lri – Render input.

Returns:

GetMap parameters, or None if no readable layers are requested.

configure()
configure_group()
configure_metadata()
configure_provider()
create_cache_name(cache)
create_grabber(opts)
post_configure()
props(user)
render_box(lri)
render_tile(lri)