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§
- Coordinate
Position - The coordinate position of the problem in the geometry.
- Geometry
Position - The position of the problem in a multi-geometry.
- Problem
AtPosition - A problem, at a given position, encountered when checking the validity of a geometry.
- Problem
Report - All the problems encountered when checking the validity of a geometry.
Enums§
- Problem
- The type of problem encountered.
- Problem
Position - The position of the problem in the geometry.
- Ring
Role - The role of a ring in a polygon.
Traits§
- Valid
- A trait to check if a geometry is valid and report the reason(s) of invalidity.