Crate geo_validity_check
source ·Expand description
geo-validity-check
This crate provides a way to check the validity of geo-types geometries by implementing the Valid trait for all the geometries in geo-types.
The Valid trait provides two methods:
is_valid()
which returns a boolean,explain_invalidity()
which returns a ProblemReport (a vector of problems, each one with its position in the geometry) that implements the Display trait.
Structs
- The coordinate position of the problem in the geometry.
- The position of the problem in a multi-geometry.
- A problem, at a given position, encountered when checking the validity of a geometry.
- All the problems encountered when checking the validity of a geometry.
Enums
- The type of problem encountered.
- The position of the problem in the geometry.
- The role of a ring in a polygon.
Traits
- A trait to check if a geometry is valid and report the reason(s) of invalidity.