cartopy.mpl.patch.path_to_geos

cartopy.mpl.patch.path_to_geos(path, force_ccw=False)[source]

Create a list of Shapely geometric objects from a matplotlib.path.Path.

Parameters
  • path – A matplotlib.path.Path instance.

  • force_ccw – Boolean flag determining whether the path can be inverted to enforce ccw. Defaults to False.

Returns

A list of instances of the following type(s)shapely.geometry.polygon.Polygon, shapely.geometry.linestring.LineString and/or shapely.geometry.multilinestring.MultiLineString.