pyinterp.geometry.cartesian.algorithms.equals

Contents

pyinterp.geometry.cartesian.algorithms.equals#

pyinterp.geometry.cartesian.algorithms.equals(geometry1: pyinterp.core.geometry.cartesian.Point, geometry2: pyinterp.core.geometry.cartesian.Point) bool#
pyinterp.geometry.cartesian.algorithms.equals(geometry1: pyinterp.core.geometry.cartesian.Segment, geometry2: pyinterp.core.geometry.cartesian.Segment) bool
pyinterp.geometry.cartesian.algorithms.equals(geometry1: pyinterp.core.geometry.cartesian.Box, geometry2: pyinterp.core.geometry.cartesian.Box) bool
pyinterp.geometry.cartesian.algorithms.equals(geometry1: pyinterp.core.geometry.cartesian.LineString, geometry2: pyinterp.core.geometry.cartesian.LineString) bool
pyinterp.geometry.cartesian.algorithms.equals(geometry1: pyinterp.core.geometry.cartesian.Ring, geometry2: pyinterp.core.geometry.cartesian.Ring) bool
pyinterp.geometry.cartesian.algorithms.equals(geometry1: pyinterp.core.geometry.cartesian.Polygon, geometry2: pyinterp.core.geometry.cartesian.Polygon) bool
pyinterp.geometry.cartesian.algorithms.equals(geometry1: pyinterp.core.geometry.cartesian.MultiPoint, geometry2: pyinterp.core.geometry.cartesian.MultiPoint) bool
pyinterp.geometry.cartesian.algorithms.equals(geometry1: pyinterp.core.geometry.cartesian.MultiLineString, geometry2: pyinterp.core.geometry.cartesian.MultiLineString) bool
pyinterp.geometry.cartesian.algorithms.equals(geometry1: pyinterp.core.geometry.cartesian.MultiPolygon, geometry2: pyinterp.core.geometry.cartesian.MultiPolygon) bool

Checks if two geometries are spatially equal.

Two geometries are equal if they represent the same set of points, regardless of the order of points or internal representation.

Parameters:
  • geometry1 – First geometric object.

  • geometry2 – Second geometric object.

Returns:

True if the geometries are equal, False otherwise.