Tool Polygon Generalization
A simple generalization tool for polygons. The tool joins polygons with an area size smaller than the specified threshold to a neighbouring polygon. Either the neighbouring polygon with the largest area or the one with which the largest edge length is shared wins.
- Author: O.Conrad (c) 2019
- Menu: Shapes|Polygons
Parameters
| Name | Type | Identifier | Description | Constraints |
Input | Shapes | shapes, input | POLYGONS | The input polygons. | - |
Output | Generalized Shapes (*) | shapes, output, optional | GENERALIZED | The generalized output polygons. | - |
Options | Area Threshold | floating point number | THRESHOLD | The maximum area of a polygon to get joined [map units squared]. | Minimum: 0.000000 Default: 100.000000 |
Join to Neighbour with ... | choice | JOIN_TO | Choose the method to determine the winner polygon. | Available Choices: [0] largest area [1] largest shared edge length Default: 0 |
Check Vertices | boolean | VERTICES | - | Default: 0 |
Tolerance | floating point number | EPSILON | - | Minimum: 0.000000 Default: 0.000010 |
(*) optional |
Command-line
Usage: saga_cmd shapes_polygons 23 [-POLYGONS <str>] [-GENERALIZED <str>] [-THRESHOLD <double>] [-JOIN_TO <str>] [-VERTICES <str>] [-EPSILON <double>]
-POLYGONS:<str> Shapes
shapes, input
-GENERALIZED:<str> Generalized Shapes
shapes, output, optional
-THRESHOLD:<double> Area Threshold
floating point number
Minimum: 0.000000
Default: 100.000000
-JOIN_TO:<str> Join to Neighbour with ...
choice
Available Choices:
[0] largest area
[1] largest shared edge length
Default: 0
-VERTICES:<str> Check Vertices
boolean
Default: 0
-EPSILON:<double> Tolerance
floating point number
Minimum: 0.000000
Default: 0.000010