@@ -4817,7 +4817,6 @@ def remove_object_within_buffer(
4817
4817
remove_interfaces_within_fault_buffers : Remove interfaces of layer boundaries within fault line buffers
4818
4818
4819
4819
"""
4820
-
4821
4820
# Checking that the buffer object is a Shapely Point or LineString
4822
4821
if not isinstance (buffer_object , shapely .geometry .base .BaseGeometry ):
4823
4822
raise TypeError ("Buffer object must be a Shapely Point or LineString" )
@@ -4877,48 +4876,50 @@ def remove_objects_within_buffer(
4877
4876
Union [List [shapely .geometry .base .BaseGeometry ], gpd .geodataframe .GeoDataFrame ],
4878
4877
Union [List [shapely .geometry .base .BaseGeometry ], gpd .geodataframe .GeoDataFrame ],
4879
4878
]:
4880
- """Removing objects from a buffered object by providing a distance
4879
+ """Remove objects from a buffered object by providing a distance.
4881
4880
4882
4881
Parameters
4883
4882
__________
4884
4883
4885
4884
buffer_object : shapely.geometry.base.BaseGeometry
4886
- Shapely object for which a buffer will be created, e.g. ``buffer_object=Point(0, 0)``
4885
+ Shapely object for which a buffer will be created, e.g. ``buffer_object=Point(0, 0)``.
4887
4886
4888
4887
buffered_object_gdf: Union[gpd.geodataframe.GeoDataFrame, List[shapely.geometry.base.BaseGeometry]]
4889
4888
GeoDataFrame or List of Base Geometries containing Shapely objects that will be buffered by the buffer
4890
- object
4889
+ object.
4891
4890
4892
- distance : float, int
4893
- Distance of the buffer around the geometry object, e.g. ``distance=10``
4891
+ distance : float, int, default: ``10``
4892
+ Distance of the buffer around the geometry object, e.g. ``distance=10``.
4894
4893
4895
- return_gdfs : bool
4894
+ return_gdfs : bool, default: ``False``
4896
4895
Variable to create GeoDataFrames of the created list of Shapely Objects.
4897
- Options include: ``True`` or ``False``, default set to ``False``
4896
+ Options include: ``True`` or ``False``, default set to ``False``.
4898
4897
4899
- remove_empty_geometries : bool
4898
+ remove_empty_geometries : bool, default: ``False``
4900
4899
Variable to remove empty geometries.
4901
- Options include: ``True`` or ``False``, default set to ``False``
4900
+ Options include: ``True`` or ``False``, default set to ``False``.
4902
4901
4903
- extract_coordinates : bool
4902
+ extract_coordinates : bool, default: ``False``
4904
4903
Variable to extract X and Y coordinates from resulting Shapely Objects.
4905
- Options include: ``True`` or ``False``, default set to ``False``
4904
+ Options include: ``True`` or ``False``, default set to ``False``.
4906
4905
4907
- buffer : bool
4906
+ buffer : bool, default: ``True``
4908
4907
Variable to create a buffer.
4909
- Options include: ``True`` or ``False``, default set to ``True``
4908
+ Options include: ``True`` or ``False``, default set to ``True``.
4910
4909
4911
4910
Returns
4912
4911
_______
4913
4912
4914
4913
result_out : list, gpd.geodataframe.GeoDataFrame
4915
- List or GeoDataFrame of Shapely objects that remain after the buffering (outside the buffer)
4914
+ List or GeoDataFrame of Shapely objects that remain after the buffering (outside the buffer).
4916
4915
4917
4916
result_in : list, gpd.geodataframe.GeoDataFrame
4918
- List or GeoDataFrame of Shapely objects that was buffered (inside the buffer)
4917
+ List or GeoDataFrame of Shapely objects that was buffered (inside the buffer).
4919
4918
4920
4919
.. versionadded:: 1.0.x
4921
4920
4921
+ .. versionchanged:: 1.2
4922
+
4922
4923
Example
4923
4924
_______
4924
4925
@@ -4939,7 +4940,7 @@ def remove_objects_within_buffer(
4939
4940
>>> linestring2.wkt
4940
4941
'LINESTRING (0 0, 10 10, 20 20)'
4941
4942
4942
- >>> # Create list of buffer objects
4943
+ >>> # Creating list of buffer objects
4943
4944
>>> buffer_objects = [linestring1, linestring2]
4944
4945
4945
4946
>>> # Removing objects within buffer
@@ -4958,8 +4959,8 @@ def remove_objects_within_buffer(
4958
4959
See Also
4959
4960
________
4960
4961
4961
- remove_object_within_buffer : Removing one object from one buffered object
4962
- remove_interfaces_within_fault_buffers : Removing interfaces of layer boundaries within fault line buffers
4962
+ remove_object_within_buffer : Remove one object from one buffered object
4963
+ remove_interfaces_within_fault_buffers : Remove interfaces of layer boundaries within fault line buffers
4963
4964
4964
4965
"""
4965
4966
0 commit comments