Expand description
OVL6.T4 — is_valid for rings and polygons.
Mirrors boost/geometry/algorithms/is_valid.hpp and the failure
taxonomy in boost/geometry/algorithms/validity_failure_type.hpp.
A geometry is valid when it satisfies the OGC simple-feature rules:
finite, in-range coordinates; enough points; a closed boundary; no
spikes; no self-intersections; the expected ring orientation; and,
for polygons, every interior ring covered by the exterior.
Polygon-level ring pairs and distinct multi-polygon members are checked after their individual rings pass, including nested holes, disconnected interiors, and intersecting member interiors.
Scope: Ring, Polygon, and MultiPolygon validation.
Coordinate validity (NaN / infinity) is checked because the robustness
gate depends on finite input.
is_valid preserves this crate’s strict behavior for compatibility.
is_valid_with accepts ValidityOptions, including
ValidityOptions::BOOST_DEFAULT which permits consecutive repeated
points like policies/is_valid/default_policy.hpp:26-61.
Structs§
- Validity
Options - Behavior switches applied by
is_valid_with.
Enums§
- Validity
Failure - Why a geometry failed
is_valid_ring/is_valid_polygon.
Functions§
- is_
valid - Validate an areal geometry through its public geometry-kind tag.
- is_
valid_ polygon - Validate a polygon: its exterior ring (with exterior orientation expectations), each interior ring (with interior orientation expectations), and all exterior/interior and interior/interior ring-pair topology constraints.
- is_
valid_ polygon_ with - Validate one polygon with explicit validity behavior.
- is_
valid_ ring - Validate a single ring.
- is_
valid_ ring_ with - Validate one ring with explicit validity behavior.
- is_
valid_ with - Validate an areal geometry with explicit validity behavior.
- validity_
reason - Return Boost’s human-readable reason for strict validation.
- validity_
reason_ with - Return Boost’s human-readable reason using explicit validity behavior.