Aller au contenu principal

Repair Geometry

Overview

The Repair Geometry tool repairs invalid geometry structures in a feature dataset in batches, helping the data comply with the OGC Simple Features specification. Repaired data helps prevent unexpected crashes or calculation errors during overlay analysis, spatial joins, or buffer processing.

Use Cases

  • Multi-source data integration: Repair common issues in data exported from CAD, KML, or third-party software, such as self-intersections, empty rings, and duplicate nodes.
  • Preprocessing before analysis: Repair all participating features before running time-consuming spatial topology calculations.
  • Data visualization optimization: Remove flickering or disappearing features caused by damaged geometry structures.

Parameters

ParameterDescriptionNotes
Input featuresThe feature dataset to repair.Supports points, lines, polygons, and other geometry types.
Delete empty geometrySpecifies whether to automatically remove records without geometry coordinates.Default: Yes.
Segment length toleranceThe minimum segment threshold used to filter degenerate geometry.Default: 1e-16.
Output feature datasetThe repaired output result.Geometry structures will comply with OGC standards.

Steps

  1. Start the tool: Open the Geoprocessing Toolbox, go to Vector Tools > Feature Processing > Trim, and open the Repair Geometry tool pane.
  2. Set the input: Select Input features.
  3. Configure parameters: Set Delete empty geometry and Segment length tolerance as needed.
  4. Configure the output: Set the output path and file name.
  5. Run the tool: Click Run and review the result.

Notes

  • The repair process may remove a very small number of severely damaged features or slightly adjust their geometry, which can affect area calculations.
  • For severe errors, run Check Geometry after repair to validate the result again.
  • Repairing large datasets may take a long time. Server-side processing is recommended.