gws.plugin.ows_client.wms.flatlayer

WMS flat layer.

Source code: gws.plugin.ows_client.wms.flatlayer

Module Contents

class gws.plugin.ows_client.wms.flatlayer.Config

Bases: gws.base.layer.Config

Layer that renders selected WMS layers as a single image.

provider: Config.provider | None

WMS service the layer is loaded from.

sourceLayers: gws.gis.source.LayerFilter | None

Source layers to render.

class gws.plugin.ows_client.wms.flatlayer.Object

Bases: gws.base.layer.image.Object

Image layer that renders selected WMS source layers as a single image.

Map images are fetched with GetMap through a WMS grabber. Queryable source layers can be searched with a wms finder.

imageLayers: list[gws.SourceLayer]

Source layers that are rendered as images.

provider: Object.provider

WMS service provider.

searchLayers: list[gws.SourceLayer]

Source layers that are queryable.

sourceCrs: gws.Crs

the forced CRS of the provider, or the source CRS that best matches the map CRS.

Type:

CRS of GetMap requests

sourceLayers: list[gws.SourceLayer]

Source layers selected for this layer.

configure()
configure_extent()
configure_legend()
configure_metadata()
configure_models()
configure_provider()
configure_resolutions()
configure_source_layers()

Select the source layers from the layers of the provider.

Returns:

Always True.

configure_sources()
create_cache_name(cache)
create_finder(cfg)

Create a wms finder bound to the provider and the queryable source layers of the layer.

Parameters:

cfg – Finder configuration, or None for the default finder.

Returns:

The finder object.

create_grabber(opts)
create_model(cfg)

Create a wms model bound to the provider and the source layers of the layer.

Parameters:

cfg – Model configuration, or None for the default model.

Returns:

The model object.