Skip to content

Sanitize Polygons

Cleans up degenerate polygon geometry — removes zero-area shapes, collinear vertices, self-intersections, and other geometric defects.

When to Use

  • After importing from formats with loose geometry validation
  • Before boolean operations that are sensitive to degenerate input
  • When encountering errors in downstream processing tools

Options

OptionDescriptionDefault
Remove zero-areaDelete polygons with zero areaOn
Remove collinearRemove unnecessary vertices on straight edgesOn
Fix self-intersectionsResolve self-intersecting polygon boundariesOn
ToleranceDistance threshold for vertex simplification0.001
Selected layers onlyApply to selected layers instead of allOff

How It Works

  1. Zero-area removal — deletes degenerate polygons (e.g., lines disguised as polygons)
  2. Collinear vertex removal — eliminates vertices that lie on a straight line between neighbors
  3. Self-intersection repair — splits self-intersecting polygons into valid non-intersecting parts
  4. Vertex deduplication — merges vertices closer than the tolerance

Technical Notes

  • Sanitization is recommended before running boolean operations
  • Collinear vertex removal reduces vertex count without changing shape
  • Self-intersection repair may split one polygon into multiple polygons