cartopy.mpl.patch.geos_to_path#

cartopy.mpl.patch.geos_to_path(shape)[source]#

Create a list of matplotlib.path.Path objects that describe a shape.

Parameters:

shape – A list, tuple or single instance of any of the following types: shapely.geometry.point.Point, shapely.geometry.linestring.LineString, shapely.geometry.linestring.LinearRing, shapely.geometry.polygon.Polygon, shapely.geometry.multipoint.MultiPoint, shapely.geometry.multipolygon.MultiPolygon, shapely.geometry.multilinestring.MultiLineString, shapely.geometry.collection.GeometryCollection, or any type with a _as_mpl_path() method.

Returns:

paths – A list of matplotlib.path.Path objects.