Skip to content

Commit 805a095

Browse files
Format create_unified_buffer
1 parent 86bcbc2 commit 805a095

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

gemgis/vector.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4565,7 +4565,7 @@ def create_buffer(
45654565
See Also
45664566
________
45674567
4568-
create_unified_buffer : Create a unified buffer around Shapely LineStrings or Points
4568+
create_unified_buffer : Create a unified buffer around Shapely LineStrings or Shapely Points
45694569
45704570
"""
45714571
# Checking that the geometry object is a Shapely LineString or Point
@@ -4590,25 +4590,27 @@ def create_unified_buffer(
45904590
],
45914591
distance: Union[np.ndarray, List[Union[float, int]], Union[float, int]],
45924592
) -> shapely.geometry.multipolygon.MultiPolygon:
4593-
"""Creating a unified buffer around Shapely LineStrings or Points
4593+
"""Create a unified buffer around Shapely LineStrings or Shapely Points.
45944594
45954595
Parameters
45964596
__________
45974597
45984598
geom_object : Union[gpd.geodataframe.GeoDataFrame, List[shapely.geometry.base.BaseGeometry]]
4599-
GeoDataFrame or List of Shapely objects
4599+
GeoDataFrame or List of Shapely objects.
46004600
46014601
distance : Union[np.ndarray, List[Union[float, int]], Union[float, int]]
4602-
Distance of the buffer around the geometry object, e.g. ``distance=10``
4602+
Distance of the buffer around the geometry object, e.g. ``distance=10``.
46034603
46044604
Returns
46054605
_______
46064606
46074607
polygon : shapely.geometry.multipolygon.MultiPolygon
4608-
Polygon representing the buffered area around a geometry object
4608+
Polygon representing the buffered area around a geometry object.
46094609
46104610
.. versionadded:: 1.0.x
46114611
4612+
.. versionchanged:: 1.2
4613+
46124614
Example
46134615
_______
46144616
@@ -4636,10 +4638,9 @@ def create_unified_buffer(
46364638
See Also
46374639
________
46384640
4639-
create_buffer : Creating a buffer around a Shapely LineString or Point
4641+
create_buffer : Create a buffer around a Shapely LineString or a Shapely Point
46404642
46414643
"""
4642-
46434644
# Checking that the geometry object is a Shapely LineString or Point
46444645
if not isinstance(
46454646
geom_object,

0 commit comments

Comments
 (0)