cartopy.feature.ShapelyFeature#

class cartopy.feature.ShapelyFeature(geometries, crs, **kwargs)[source]#

A class capable of drawing a collection of shapely geometries.

__init__(geometries, crs, **kwargs)[source]#
Parameters:
  • geometries – A collection of shapely geometries.

  • crs – The cartopy CRS in which the provided geometries are defined.

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

Methods

__init__(geometries, crs, **kwargs)

param geometries:

A collection of shapely geometries.

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.