pyinterp.geometry.cartesian.algorithms.unique

Contents

pyinterp.geometry.cartesian.algorithms.unique#

pyinterp.geometry.cartesian.algorithms.unique(geometry: pyinterp.core.geometry.cartesian.Point) None#
pyinterp.geometry.cartesian.algorithms.unique(geometry: pyinterp.core.geometry.cartesian.Segment) None
pyinterp.geometry.cartesian.algorithms.unique(geometry: pyinterp.core.geometry.cartesian.Box) None
pyinterp.geometry.cartesian.algorithms.unique(geometry: pyinterp.core.geometry.cartesian.LineString) None
pyinterp.geometry.cartesian.algorithms.unique(geometry: pyinterp.core.geometry.cartesian.Ring) None
pyinterp.geometry.cartesian.algorithms.unique(geometry: pyinterp.core.geometry.cartesian.Polygon) None
pyinterp.geometry.cartesian.algorithms.unique(geometry: pyinterp.core.geometry.cartesian.MultiPoint) None
pyinterp.geometry.cartesian.algorithms.unique(geometry: pyinterp.core.geometry.cartesian.MultiLineString) None
pyinterp.geometry.cartesian.algorithms.unique(geometry: pyinterp.core.geometry.cartesian.MultiPolygon) None

Removes consecutive duplicate points from a geometry.

This function removes points that are equal to their immediate predecessor. For closed geometries like rings, the closing point is preserved.

This operation modifies the geometry in-place.

Parameters:

geometry – Geometric object to process.