gws.plugin.ows_client.wfs.flatlayer

WFS flat layer.

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

Module Contents

class gws.plugin.ows_client.wfs.flatlayer.Config

Bases: gws.base.layer.Config

Vector layer that shows the features of one WFS feature type.

provider: Config.provider | None

WFS service the layer is loaded from.

sourceLayers: gws.gis.source.LayerFilter | None

Feature type to show.

class gws.plugin.ows_client.wfs.flatlayer.Object

Bases: gws.base.layer.vector.Object

Vector layer that shows the features of a single WFS feature type.

The features are loaded from the WFS service through a wfs model and can be searched with a wfs finder.

provider: Object.provider

WFS service provider.

sourceCrs: gws.Crs

Source CRS. Not set by this class.

sourceLayers: list[gws.SourceLayer]

Feature type shown by the layer, always a single source layer.

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

Select the source layers from the feature types of the provider.

Returns:

Always True.

configure_sources()
create_finder(cfg)

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

Parameters:

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

Returns:

The finder object.

create_model(cfg)

Create a wfs 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.