From e73687f22c1b3db436dd20d5910fbc88d0f6ec84 Mon Sep 17 00:00:00 2001 From: AlexanderJuestel Date: Sun, 28 Jul 2024 12:58:03 +0200 Subject: [PATCH] Format explode_geometry_collection --- gemgis/vector.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/gemgis/vector.py b/gemgis/vector.py index dcbf3c47..37f51e2b 100644 --- a/gemgis/vector.py +++ b/gemgis/vector.py @@ -3108,22 +3108,24 @@ def explode_polygons( def explode_geometry_collection( collection: shapely.geometry.collection.GeometryCollection, ) -> List[shapely.geometry.base.BaseGeometry]: - """Exploding a Shapely Geometry Collection to a List of Base Geometries + """Explode a Shapely Geometry Collection to a List of Base Geometries. Parameters __________ collection : shapely.geometry.collection.GeometryCollection - Shapely Geometry Collection consisting of different Base Geometries + Shapely Geometry Collection consisting of different Base Geometries. Returns _______ collection_exploded : List[shapely.geometry.base.BaseGeometry] - List of Base Geometries from the original Geometry Collection + List of Base Geometries from the original Geometry Collection. .. versionadded:: 1.0.x + .. versionchanged:: 1.2 + Example _______ @@ -3153,10 +3155,9 @@ def explode_geometry_collection( See Also ________ - explode_geometry_collections : Exploding a GeoDataFrame containing different Base Geometries + explode_geometry_collections : Explode a GeoDataFrame containing different Base Geometries """ - # Checking that the Geometry Collection is a Shapely Geometry Collection if not isinstance(collection, shapely.geometry.collection.GeometryCollection): raise TypeError("Geometry Collection must be a Shapely Geometry Collection")