cartopy.io.ogc_clients.WFSGeometrySource¶
- class cartopy.io.ogc_clients.WFSGeometrySource(service, features, getfeature_extra_kwargs=None)[source]¶
Web Feature Service (WFS) retrieval for Cartopy.
- __init__(service, features, getfeature_extra_kwargs=None)[source]¶
- Parameters
service – The URL of a WFS, or an instance of
owslib.wfs.WebFeatureService
.features – The typename(s) of the features from the WFS that will be retrieved and made available as geometries.
getfeature_extra_kwargs (optional) – Extra keyword args to pass to the service’s
getfeature
call. Defaults to None
Methods
__init__
(service, features[, ...])- param service
The URL of a WFS, or an instance of
default_projection
()Return a
cartopy.crs.Projection
in which the WFS service can supply the requested features.fetch_geometries
(projection, extent)Return any Point, Linestring or LinearRing geometries available from the WFS that lie within the specified extent.