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§

CoordinatePosition
The coordinate position of the problem in the geometry.
GeometryPosition
The position of the problem in a multi-geometry.
ProblemAtPosition
A problem, at a given position, encountered when checking the validity of a geometry.
ProblemReport
All the problems encountered when checking the validity of a geometry.

Enums§

Problem
The type of problem encountered.
ProblemPosition
The position of the problem in the geometry.
RingRole
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.