gws.plugin.ows_client.wfs.provider

WFS service provider.

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

Module Contents

class gws.plugin.ows_client.wfs.provider.Config

Bases: gws.base.ows.client.provider.Config

Connection to a WFS service.

withBboxCrs: bool | None

Add the CRS to the bounding box parameter.

class gws.plugin.ows_client.wfs.provider.Object

Bases: gws.base.ows.client.provider.Object

WFS service provider.

Reads the capabilities of a WFS service and runs GetFeature requests for the layers, finders and models that use the service.

DEFAULT_GET_FEATURE_LIMIT = 100

Max. number of features in GetFeature requests, if the search has no limit.

isWfs2: bool

The service version is 2 or higher.

protocol
withBboxCrs: bool

Append the CRS to the BBOX parameter. Defaults to True for WFS 2.

configure()
create_leaf_layer_config(source_layers)

Create the configuration of a wfsflat layer for the given feature types.

Used by the wfs tree layer to create its child layers.

Parameters:

source_layers – Feature types to show in the layer.

Returns:

A layer configuration that uses this provider.

get_features(search, source_layers)