cartopy.feature.ShapelyFeature#

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

A class capable of drawing a collection of shapely geometries.

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.

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)#

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.