pyinterp.geometry.cartesian.algorithms.reverse

Contents

pyinterp.geometry.cartesian.algorithms.reverse#

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

Reverses the order of points in a geometry.

For linestrings and rings, this reverses the order of points. For polygons, this reverses both the exterior ring and all interior rings. For multi-geometries, this reverses each component geometry.

This operation modifies the geometry in-place.

Parameters:

geometry – Geometric object to reverse.