SAGA-GIS Tool Library Documentation (v9.2.0)

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.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputShapesshapes, inputPOLYGONSThe input polygons.-
OutputGeneralized Shapes (*)shapes, output, optionalGENERALIZEDThe generalized output polygons.-
OptionsArea Thresholdfloating point numberTHRESHOLDThe maximum area of a polygon to get joined [map units squared].Minimum: 0.000000
Default: 100.000000
Join to Neighbour with ...choiceJOIN_TOChoose the method to determine the winner polygon.Available Choices:
[0] largest area
[1] largest shared edge length
Default: 0
Check VerticesbooleanVERTICES-Default: 0
Tolerancefloating point numberEPSILON-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