Skip to main content

validate

Function validate 

Source
pub fn validate(poly: &Polygon) -> Result<(), ValidityError>
Expand description

Checks that a polygon is valid: every ring simple with at least three vertices and non-zero area, holes strictly inside the outer ring and with disjoint interiors, rings touching only at isolated points without disconnecting the interior. Orientation is not checked (see check_canonical).