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].

__init__(wfs, features, **kwargs)[source]#
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.

Methods

__init__(wfs, features, **kwargs)

param wfs:

The WebFeatureService instance, or URL of a WFS service, from which

geometries()

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

intersecting_geometries(extent)

Return an iterator of shapely geometries that intersect with the given extent.

Attributes

crs

The cartopy CRS for the geometries in this feature.

kwargs

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