cartopy.feature.WFSFeature#

class cartopy.feature.WFSFeature(wfs, features, **kwargs)[source]#

A class capable of drawing a collection of geometries obtained from an OGC Web Feature Service (WFS).

This feature requires additional dependencies. If installed via pip, try pip install cartopy[ows].

Parameters:
  • wfs (string or owslib.wfs.WebFeatureService instance) – The WebFeatureService instance, or URL of a WFS service, from which to retrieve the geometries.

  • features (string or list of strings) – The typename(s) of features available from the web service that will be retrieved. Somewhat analogous to layers in WMS/WMTS.

  • **kwargs – Keyword arguments to be used when drawing this feature.

property crs#

The cartopy CRS for the geometries in this feature.

geometries()[source]#

Return an iterator of (shapely) geometries for this feature.

intersecting_geometries(extent)[source]#

Return an iterator of shapely geometries that intersect with the given extent. The extent is assumed to be in the CRS of the feature. If extent is None, the method returns all geometries for this dataset.

property kwargs#

The read-only dictionary of keyword arguments that are used when creating the Matplotlib artists for this feature.