Topology Validator
Topology describes the relationships and spatial connections between points, lines, and polygons. You can inspect
your vector layers to check if their geometry is well-formed and valid in 2D according to OGC (Open Geospatial
Consortium) rules. These rules verify spatial relationships—whether features 'Equal', 'Contain', 'Cover', are
'CoveredBy', 'Cross', are 'Disjoint', 'Intersect', 'Overlap', 'Touch', or are 'Within' each other.
Note: The Topology Validator is available to users who have this option
enabled in their user profile.
Why is topology validation important?
Topological checking is a crucial step in ensuring the high quality and accuracy of spatial data. In practice, during digitization or data merging, errors frequently occur—such as overlapping polygons (e.g., adjacent land parcels sharing the same area), unintended gaps between features, or lines crossing without a proper intersection node. The Topology Validator automatically detects and highlights these anomalies. By doing so, it ensures your data is reliable for subsequent spatial analysis, accurate area and length calculations, and visually correct representation.
Using the Tool in Gismatrix
You can access the tool via the properties of the Topology Layer. In the dialog window, you configure the validation parameters and monitor the results:
- Select Table: Choose the target vector table or view you want to validate from the Table dropdown list.
- Start Validation: Click the
(play icon) start button next to the selected table. - Processing: The system first automatically clears all previous error markers from the Topology layer, and then begins the analysis. You can monitor the progress bar and current status during execution. You can also safely abort the process if necessary.
- Results: Upon completion, a statistical summary of the detected errors (count by error type) is displayed in the text area. Most importantly, all found errors are drawn directly onto the Topology layer on the map as points, lines, or polygons. This allows you to visually locate problematic areas instantly and correct them using editing tools.
- Manual Clear: To remove the error markers from the map manually, use the trash bin button
Clear Layer in the upper toolbar of the dialog.
Validation Settings
Tolerance (m)
Tolerance establishes a precision model used in topology validation. Any value greater than 0 creates a grid to
"snap" all coordinates. For example, if you want millimeter tolerance, set the value to 0.001m. An
input coordinate of 520.111 821.999 will remain the same, but 520.1111 821.9999 will
auto-snap to 520.111 822.
Background: Double-precision floating-point coordinates can sometimes make calculations
difficult (e.g., finding exact intersections). A tolerance tells the system to account for minute mapping
inaccuracies.
Maximum Gap Area
Enter the maximum area of a gap (default 10 m²) allowed. Gaps are closed empty areas between adjacent polygons. While some gaps may be legitimate, small gaps often reflect poor boundary digitization or mismatching edges.
Do not show disjoint objects
When this option is enabled, 'Disjoint' topology error locations are not drawn onto the Topology layer map, but will only appear in the textual topology error list summary.
Consider self-touching rings as valid (Esri flag)
Sets whether polygons using self-touching rings to form holes are reported as valid. The default (following the strict OGC SFS standard) is unchecked. If checked, it uses the validity model common in Esri tools where:
- The outer shell ring self-touches to create a hole touching the shell.
- An interior ring (hole) self-touches to create two holes touching at a single point.
Geometry and Topology Errors
Prior to checking the topological relationships between different features, the geometry of each individual object is checked for compliance with OGC rules. Objects that do not pass basic geometry validation are excluded from the subsequent topology relationship process.
Geometry Errors
| Error | Description |
|---|---|
| 'Invalid Geometry' | Incorrect geometry data or geometry not specified. |
| 'Repeated point', 'Invalid Coordinate', 'Ring is not closed', 'Hole lies outside shell', 'Holes are nested', 'Interior is disconnected', 'Self-intersection', 'Ring Self-intersection', 'Nested shells', 'Duplicate Rings', 'Too few distinct points' | Structural defects found within a single feature. If possible, the exact location of the error is marked with a point; otherwise, the entire object is flagged. |
| 'Duplicate node' | Displays a node where the distance to the next node is less than the defined tolerance
distance. Exception: Despite this error, the objects are still included in the topological validation process. |
Topology Rule Violation Errors (Between Features)
| Error | Description |
|---|---|
| 'Overlaps' | Adjacent polygons share common area inappropriately (they overlap). |
| 'Gap' | Adjacent polygons form unintended gaps between them larger than the allowed tolerance. |
| 'Crosses' | Geometry crosses adjacent geometry in an invalid manner. |
| 'Disjoint' | An isolated geometry that does not have any common point or shared boundary with other geometries. |
| 'Side location conflict', 'Non-noded intersection', 'No outgoing dirEdge' | There is a line crossing another line and no intermediate coordinate records the intersection, or there is a missing node on the adjacent geometry. |