geo-repair-polygon 0.1.0

A trait that attempts repairing a geo-types (Multi)Polygon that is invalid according to geo-validator, and a trait to merge MultiPolygon into a valid Polygon
Documentation

rust-geo-repair-polygon

A package containing:

  • a trait for (Multi)Polygon that attempts repairing a geo-types (Multi)Polygon that is invalid according to geo-validator.
  • a trait for MultiPolygon that merges all of its Polygons into a single valid Polygon

Notes

When running repair, it will try its best to produce a (Multi)Polygon that meets OGC standards. Some very invalid polygons still fail, but most come through as valid with very little change.

The join trait for MultiPolygon will merge all of its Polygons into a single valid Polygon. This may involve a union or the creation of a small bridge between the closes points of non-overlapping Polygons.

//TODO: add more docs...