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.Pathinstance.- Returns:
One of the following Shapely objects –
shapely.Polygon,shapely.LineStringshapely.Point,shapely.MultiPolygonshapely.MultiLineStringshapely.MultiPointshapely.GeometryCollection.