pyinterp.geometry.cartesian.algorithms.overlaps

Contents

pyinterp.geometry.cartesian.algorithms.overlaps#

pyinterp.geometry.cartesian.algorithms.overlaps(geometry1: pyinterp.core.geometry.cartesian.LineString, geometry2: pyinterp.core.geometry.cartesian.LineString) bool#
pyinterp.geometry.cartesian.algorithms.overlaps(geometry1: pyinterp.core.geometry.cartesian.LineString, geometry2: pyinterp.core.geometry.cartesian.MultiLineString) bool
pyinterp.geometry.cartesian.algorithms.overlaps(geometry1: pyinterp.core.geometry.cartesian.Polygon, geometry2: pyinterp.core.geometry.cartesian.Polygon) bool
pyinterp.geometry.cartesian.algorithms.overlaps(geometry1: pyinterp.core.geometry.cartesian.Polygon, geometry2: pyinterp.core.geometry.cartesian.MultiPolygon) bool
pyinterp.geometry.cartesian.algorithms.overlaps(geometry1: pyinterp.core.geometry.cartesian.MultiLineString, geometry2: pyinterp.core.geometry.cartesian.LineString) bool
pyinterp.geometry.cartesian.algorithms.overlaps(geometry1: pyinterp.core.geometry.cartesian.MultiLineString, geometry2: pyinterp.core.geometry.cartesian.MultiLineString) bool
pyinterp.geometry.cartesian.algorithms.overlaps(geometry1: pyinterp.core.geometry.cartesian.MultiPolygon, geometry2: pyinterp.core.geometry.cartesian.Polygon) bool
pyinterp.geometry.cartesian.algorithms.overlaps(geometry1: pyinterp.core.geometry.cartesian.MultiPolygon, geometry2: pyinterp.core.geometry.cartesian.MultiPolygon) bool

Checks if two geometries overlap.

Two geometries overlap if they have some but not all points in common, they have the same dimension, and the intersection of their interiors is not empty.

Parameters:
  • geometry1 – First geometric object.

  • geometry2 – Second geometric object.

Returns:

True if the geometries overlap, False otherwise.