Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
theroggy committed Aug 3, 2023
1 parent b4ef070 commit 2442f11
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions shapely/set_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@
def difference(a, b, grid_size=None, **kwargs):
"""Returns the part of geometry A that does not intersect with geometry B.
If grid_size is nonzero, input coordinates will be snapped to a precision
grid of that size and resulting coordinates will be snapped to that same
grid. If 0, this operation will use double precision coordinates. If None,
the highest precision of the inputs will be used, which may be previously
set using set_precision. Note: returned geometry does not have precision
set unless specified previously by set_precision.
Especially for larger geometries, running difference between geometries
that don't intersect can take significantly longer than checking for this
first using :meth:`~intersects`.
The values returned depend on the input geometries:
- If a and b are single geometries, a single geometry is returned: a
differenced with b.
Expand All @@ -36,17 +47,6 @@ def difference(a, b, grid_size=None, **kwargs):
element contains the difference between the corresponding element in
array a and array b.
If grid_size is nonzero, input coordinates will be snapped to a precision
grid of that size and resulting coordinates will be snapped to that same
grid. If 0, this operation will use double precision coordinates. If None,
the highest precision of the inputs will be used, which may be previously
set using set_precision. Note: returned geometry does not have precision
set unless specified previously by set_precision.
Especially for larger geometries, running difference between geometries
that don't intersect can take significantly longer than checking for this
first using :meth:`~interects`.
Parameters
----------
a : Geometry or array_like
Expand Down

0 comments on commit 2442f11

Please sign in to comment.