Geometry Checker is a powerful core plugin to check and fix the geometry validity of a layer. It is available from the ).menu (
22.214.171.124. Configuring the checks¶
The Check Geometries dialog shows different grouped settings in the first tab (Setup):
Input vector layers: to select the layers to check. A Only selected features checkbox can be used to restrict the checking to the geometries of the selected features.
Allowed geometry types: to allow only some geometry types like point, multipoint, line, multiline, polygon and multipolygon.
Geometry validity: depending on geometry types, the user can choose Self intersections, Duplicate nodes, Self contacts and Polygon with less than 3 nodes.
Geometry properties: depending on geometry types, the user can choose Polygons and multipolygons may not contain any holes, Multipart objects must consist of more than one part and Lines must not have dangles.
Geometry conditions: user can add some condition to validate the geometries with a minimal segment length, a minimum angle between segment, a minimal polygon area and sliver polygons detection.
トポロジチェック ：ジオメトリタイプに応じて、ユーザは 重複をチェックします 、 他の地物内の地物をチェックします 、 重複がより小さいかどうかをチェックします 、 ギャップがより小さいかチェックします 、 ポイントはラインでカバーする必要があります 、 ポイントはポリゴン内に適切に配置する必要があります 、 ラインは他のラインと交差してはいけません 、 ラインはレイヤの地物と交差してはいけません 、 ポリゴンはレイヤの境界に従う必要があります を選択できます。
Tolerance: you can define the tolerance of the check in map layer units.
Output vector layer gives the choice to the user how get the result between modify the current layer and create a new layer.
When you are happy with the configuration, you can click on the Run button.
The Geometry Checker Plugin can find the following errors:
Self intersections: a polygon with a self intersection;
Duplicate nodes: two duplicates nodes in a segment;
Holes: hole in a polygon;
Segment length: a segment length lower than a threshold;
Minimum angle: two segments with an angle lower than a threshold;
Minimum area: polygon area lower than a threshold;
Silver polygon: this error come from very small polygon (with small area) with a large perimeter;
Feature within feature;
Overlaps: polygon overlapping;
Gaps: gaps between polygons.
The following figure shows the different checks made by the plugin.
126.96.36.199. Analysing the results¶
The results appear in the second tab (Result) and as an overview
layer of the errors in the canvas (its name has the default prefix
A table lists the Geometry check result with one error per row and
columns containing: the layer name, an ID, the error type, then the coordinates
of the error, a value (depending on the type of the error) and finally the
resolution column which indicates the resolution of the error.
At the bottom of this table, you can Export the error into different file
formats. You also have a counter with the number of total errors and fixed ones.
You can select a row to see the location of the error. You can change this behavior by selecting another action between Error (default), Feature, Don't move, and Highlight contour of selected features.
Below the zoom action when clicking on the table row, you can:
Fix selected errors, prompt for resolution method. You will see a window to choose the resolution's method among which:
Merge with neighboring polygon with longest shared edge;
Merge with neighboring polygon with largest area;
Merge with neighboring polygon with identical attribute value, if any, or leave as is;
Fix multiple errors
You can fix multiple errors by selecting more than one row in the table with the CTRL + click action.
The default action can be changed with the last icon Error resolution settings For some type of errors, you can change the default action between some specific action or No action.
Finally, you can choose which attribute to use when merging features by attribute value.