pyinterp.geometry.cartesian.algorithms.difference#
- pyinterp.geometry.cartesian.algorithms.difference(geometry1: pyinterp.core.geometry.cartesian.Ring, geometry2: pyinterp.core.geometry.cartesian.Ring) list[pyinterp.core.geometry.cartesian.Polygon]#
- pyinterp.geometry.cartesian.algorithms.difference(geometry1: pyinterp.core.geometry.cartesian.Ring, geometry2: pyinterp.core.geometry.cartesian.Polygon) list[pyinterp.core.geometry.cartesian.Polygon]
- pyinterp.geometry.cartesian.algorithms.difference(geometry1: pyinterp.core.geometry.cartesian.Polygon, geometry2: pyinterp.core.geometry.cartesian.Ring) list[pyinterp.core.geometry.cartesian.Polygon]
- pyinterp.geometry.cartesian.algorithms.difference(geometry1: pyinterp.core.geometry.cartesian.Polygon, geometry2: pyinterp.core.geometry.cartesian.Polygon) list[pyinterp.core.geometry.cartesian.Polygon]
- pyinterp.geometry.cartesian.algorithms.difference(geometry1: pyinterp.core.geometry.cartesian.MultiPolygon, geometry2: pyinterp.core.geometry.cartesian.Ring) list[pyinterp.core.geometry.cartesian.Polygon]
- pyinterp.geometry.cartesian.algorithms.difference(geometry1: pyinterp.core.geometry.cartesian.MultiPolygon, geometry2: pyinterp.core.geometry.cartesian.Polygon) list[pyinterp.core.geometry.cartesian.Polygon]
- pyinterp.geometry.cartesian.algorithms.difference(geometry1: pyinterp.core.geometry.cartesian.MultiPolygon, geometry2: pyinterp.core.geometry.cartesian.MultiPolygon) list[pyinterp.core.geometry.cartesian.Polygon]
- pyinterp.geometry.cartesian.algorithms.difference(geometry1: pyinterp.core.geometry.cartesian.Ring, geometry2: pyinterp.core.geometry.cartesian.MultiPolygon) list[pyinterp.core.geometry.cartesian.Polygon]
- pyinterp.geometry.cartesian.algorithms.difference(geometry1: pyinterp.core.geometry.cartesian.Polygon, geometry2: pyinterp.core.geometry.cartesian.MultiPolygon) list[pyinterp.core.geometry.cartesian.Polygon]
Computes the geometric difference between two geometries.
The difference operation returns the part of the first geometry that does not intersect with the second geometry. The result is returned as a list of polygons or linestrings, depending on the input geometry types.
- Parameters:
geometry1 – First geometry (minuend).
geometry2 – Second geometry (subtrahend).
- Returns:
A list of geometries representing the difference. For polygon inputs, returns a list of Polygon objects. For linestring inputs, returns a list of LineString objects.