Web Feature Service (WFS)

class wlts.datasources.wfs.WFSDataSource(id, ds_info)

This class implements a WFSDataSource.

__init__(id, ds_info)

Create a WFSDataSource.

Parameters
  • id (str) – the datasource identifier.

  • ds_info (dict) – A datasource information as a dictionary.

get_type()str

Return the datasource type.

property host_information

Returns the host.

get_classe(feature_id, value, class_property_name, ft_name, workspace, **kwargs)

Return a class of feature based on his classification system.

organize_trajectory(result, obs, geom_flag, geom_property, classification_class, temporal, language)

Organize trajectory.

get_trajectory(**kwargs)

Return a trajectory observation of this datasource.

class wlts.datasources.wfs.WFS(host, **kwargs)

This class implements the WCS client.

__init__(host, **kwargs)

Create a WFS client attached to the given host address (an URL).

Parameters
  • host (str) – the server URL.

  • **kwargs – The keyword arguments with credentials to access WFS.

property host_information

Returns the host.

check_feature(ft_name)

Utility to check feature existence in wfs.

Parameters

ft_name (str) – The feature name to check.

mount_url(type_name, **kwargs)

Mount the url for get a feature from server based on GetFeature request.

Parameters
  • type_name (str) – Name of the feature type.

  • **kwargs – The keyword arguments: srid (int): EPSG code propertyName (str): Feature property names filter (str): Filter to use in request. outputformat (str): Requested response format of the request.

get_feature(type_name, srid, filter)

Retrieve the feature collection given feature.

get_class(type_name, tag_name, filter)

Return a class of given feature.