pyinterp.geometry.geographic.algorithms.is_simple#
- pyinterp.geometry.geographic.algorithms.is_simple(geometry: pyinterp.core.geometry.geographic.Point) bool#
- pyinterp.geometry.geographic.algorithms.is_simple(geometry: pyinterp.core.geometry.geographic.Segment) bool
- pyinterp.geometry.geographic.algorithms.is_simple(geometry: pyinterp.core.geometry.geographic.Box) bool
- pyinterp.geometry.geographic.algorithms.is_simple(geometry: pyinterp.core.geometry.geographic.LineString) bool
- pyinterp.geometry.geographic.algorithms.is_simple(geometry: pyinterp.core.geometry.geographic.Ring) bool
- pyinterp.geometry.geographic.algorithms.is_simple(geometry: pyinterp.core.geometry.geographic.Polygon) bool
- pyinterp.geometry.geographic.algorithms.is_simple(geometry: pyinterp.core.geometry.geographic.MultiPoint) bool
- pyinterp.geometry.geographic.algorithms.is_simple(geometry: pyinterp.core.geometry.geographic.MultiLineString) bool
- pyinterp.geometry.geographic.algorithms.is_simple(geometry: pyinterp.core.geometry.geographic.MultiPolygon) bool
Check if a geometry is simple (has no self-intersections).
For linestrings and rings, a geometry is simple if it does not intersect itself (except possibly at endpoints). For polygons, this checks both the outer ring and inner rings.
Note: Points and boxes are always simple.
- Parameters:
geometry – Geometric object to check.
- Returns:
True if the geometry is simple, false otherwise.