cartopy.mpl.path.path_to_shapely#
- cartopy.mpl.path.path_to_shapely(path)[source]#
Create a Shapely geometric object from a
matplotlib.path.Path
.- Parameters:
path – A
matplotlib.path.Path
instance.- Returns:
One of the following Shapely objects –
shapely.Polygon
,shapely.LineString
shapely.Point
,shapely.MultiPolygon
shapely.MultiLineString
shapely.MultiPoint
shapely.GeometryCollection
.