pyinterp.geometry.cartesian.algorithms.union#
- pyinterp.geometry.cartesian.algorithms.union(geometry1: pyinterp.core.geometry.cartesian.Ring, geometry2: pyinterp.core.geometry.cartesian.Ring) list[pyinterp.core.geometry.cartesian.Polygon]#
- pyinterp.geometry.cartesian.algorithms.union(geometry1: pyinterp.core.geometry.cartesian.Ring, geometry2: pyinterp.core.geometry.cartesian.Polygon) list[pyinterp.core.geometry.cartesian.Polygon]
- pyinterp.geometry.cartesian.algorithms.union(geometry1: pyinterp.core.geometry.cartesian.Polygon, geometry2: pyinterp.core.geometry.cartesian.Ring) list[pyinterp.core.geometry.cartesian.Polygon]
- pyinterp.geometry.cartesian.algorithms.union(geometry1: pyinterp.core.geometry.cartesian.Polygon, geometry2: pyinterp.core.geometry.cartesian.Polygon) list[pyinterp.core.geometry.cartesian.Polygon]
- pyinterp.geometry.cartesian.algorithms.union(geometry1: pyinterp.core.geometry.cartesian.MultiPolygon, geometry2: pyinterp.core.geometry.cartesian.Ring) list[pyinterp.core.geometry.cartesian.Polygon]
- pyinterp.geometry.cartesian.algorithms.union(geometry1: pyinterp.core.geometry.cartesian.MultiPolygon, geometry2: pyinterp.core.geometry.cartesian.Polygon) list[pyinterp.core.geometry.cartesian.Polygon]
- pyinterp.geometry.cartesian.algorithms.union(geometry1: pyinterp.core.geometry.cartesian.MultiPolygon, geometry2: pyinterp.core.geometry.cartesian.MultiPolygon) list[pyinterp.core.geometry.cartesian.Polygon]
- pyinterp.geometry.cartesian.algorithms.union(geometry1: pyinterp.core.geometry.cartesian.Ring, geometry2: pyinterp.core.geometry.cartesian.MultiPolygon) list[pyinterp.core.geometry.cartesian.Polygon]
- pyinterp.geometry.cartesian.algorithms.union(geometry1: pyinterp.core.geometry.cartesian.Polygon, geometry2: pyinterp.core.geometry.cartesian.MultiPolygon) list[pyinterp.core.geometry.cartesian.Polygon]
- pyinterp.geometry.cartesian.algorithms.union(geometry1: pyinterp.core.geometry.cartesian.LineString, geometry2: pyinterp.core.geometry.cartesian.LineString) list[pyinterp.core.geometry.cartesian.LineString]
- pyinterp.geometry.cartesian.algorithms.union(geometry1: pyinterp.core.geometry.cartesian.MultiLineString, geometry2: pyinterp.core.geometry.cartesian.MultiLineString) list[pyinterp.core.geometry.cartesian.LineString]
Computes the geometric union of two geometries.
The union operation returns the combined area covered by both geometries. The result is returned as a vector of polygons or linestrings, depending on the input geometry types.
- Parameters:
geometry1 – First geometry.
geometry2 – Second geometry.
- Returns:
A list of geometries representing the union. For polygon inputs, returns a list of Polygon objects (typically one polygon, but may be multiple if geometries are disjoint). For linestring inputs, returns a list of LineString objects.