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

Traits

  • A trait to check if a geometry is valid and report the reason(s) of invalidity.