Skip to content

Commit e73687f

Browse files
Format explode_geometry_collection
1 parent e5713f3 commit e73687f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

gemgis/vector.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3108,22 +3108,24 @@ def explode_polygons(
31083108
def explode_geometry_collection(
31093109
collection: shapely.geometry.collection.GeometryCollection,
31103110
) -> List[shapely.geometry.base.BaseGeometry]:
3111-
"""Exploding a Shapely Geometry Collection to a List of Base Geometries
3111+
"""Explode a Shapely Geometry Collection to a List of Base Geometries.
31123112
31133113
Parameters
31143114
__________
31153115
31163116
collection : shapely.geometry.collection.GeometryCollection
3117-
Shapely Geometry Collection consisting of different Base Geometries
3117+
Shapely Geometry Collection consisting of different Base Geometries.
31183118
31193119
Returns
31203120
_______
31213121
31223122
collection_exploded : List[shapely.geometry.base.BaseGeometry]
3123-
List of Base Geometries from the original Geometry Collection
3123+
List of Base Geometries from the original Geometry Collection.
31243124
31253125
.. versionadded:: 1.0.x
31263126
3127+
.. versionchanged:: 1.2
3128+
31273129
Example
31283130
_______
31293131
@@ -3153,10 +3155,9 @@ def explode_geometry_collection(
31533155
See Also
31543156
________
31553157
3156-
explode_geometry_collections : Exploding a GeoDataFrame containing different Base Geometries
3158+
explode_geometry_collections : Explode a GeoDataFrame containing different Base Geometries
31573159
31583160
"""
3159-
31603161
# Checking that the Geometry Collection is a Shapely Geometry Collection
31613162
if not isinstance(collection, shapely.geometry.collection.GeometryCollection):
31623163
raise TypeError("Geometry Collection must be a Shapely Geometry Collection")

0 commit comments

Comments
 (0)