From 085716b2c8219418b9331681d47f342ec8e05b60 Mon Sep 17 00:00:00 2001 From: AlexanderJuestel Date: Sun, 28 Jul 2024 12:34:26 +0200 Subject: [PATCH] Format explode_multilinestring --- gemgis/vector.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gemgis/vector.py b/gemgis/vector.py index 30ac1f27..f6f80c76 100644 --- a/gemgis/vector.py +++ b/gemgis/vector.py @@ -2719,23 +2719,25 @@ def explode_linestring_to_elements( def explode_multilinestring( multilinestring: shapely.geometry.multilinestring.MultiLineString, ) -> List[shapely.geometry.linestring.LineString]: - """Exploding a MultiLineString into a list of LineStrings + """Explode a MultiLineString into a list of LineStrings. Parameters __________ multilinestring : shapely.geometry.multilinestring.MultiLineString Shapely MultiLineString consisting of multiple LineStrings, - e.g. ``multilinestring = MultiLineString([((0, 0), (1, 1)), ((-1, 0), (1, 0))])`` + e.g. ``multilinestring = MultiLineString([((0, 0), (1, 1)), ((-1, 0), (1, 0))])``. Returns _______ splitted_multilinestring : List[shapely.geometry.linestring.LineString] - List of Shapely LineStrings + List of Shapely LineStrings. .. versionadded:: 1.0.x + .. versionchanged:: 1.2 + Example _______ @@ -2763,11 +2765,10 @@ def explode_multilinestring( See Also ________ - explode_multilinestrings : Exploding a GeoDataFrame containing MultiLineStrings into a GeoDataFrame containing + explode_multilinestrings : Explode a GeoDataFrame containing MultiLineStrings into a GeoDataFrame containing LineStrings only """ - # Checking that the MultiLineString is a Shapely MultiLineString if not isinstance( multilinestring, shapely.geometry.multilinestring.MultiLineString