geodesic.boson.dataset.Dataset.from_wfs#
- static Dataset.from_wfs(name, url, feature_type, preferred_version='2.0.0', feature_limit=10000, datetime_field=None, geometry_field=None, credential=None, insecure=False, middleware={}, cache={}, tile_options={}, domain='*', category='*', type='*', **kwargs)[source]#
Create a dataset from a OGC Web Feature Service (WFS) endpoint.
- Parameters:
name (str) – name of the Dataset to create
url (str) – the URL of the WFS endpoint
feature_type (str) – the name of the feature type to query
preferred_version (str) – the preferred version of the WFS to use (default 2.0.0)
feature_limit (int) – the max number of features that this provider will allow returned in a single page.
datetime_field (str | None) – the name of the datetime field in the WFS data - by default will take the last xsd:dateTime field listed.
geometry_field (str | None) – the name of the geometry field in the WFS data - by default will take the last valid GML field listed.
credential (str | None) – the name of the credential to access the data in cloud storage.
insecure (bool) – if True, will not verify the server’s certificate
middleware (MiddlewareConfig | list) – configure any boson middleware to be applied to the new dataset.
cache (CacheConfig) – configure caching for this dataset
tile_options (TileOptions) – configure tile options for this dataset
domain (str) – domain of the resulting
Datasetcategory (str) – category of the resulting
Datasettype (str) – the type of the resulting
Dataset**kwargs – additional properties to set on the new
Dataset
- Returns:
a new Dataset.
- Return type: