SAGA-GIS Tool Library Documentation (v7.2.0)

Tool Polygon Shape Indices

The tool calculates various indices describing the shape of polygons, mostly based on area, perimeter and maximum diameter. If the optional output 'Shape Indices' is not created, the tool attaches the attributes to the input dataset. Otherwise a new dataset is created and attributes existing in the input dataset are dropped.


References


Parameters

 NameTypeIdentifierDescriptionConstraints
InputShapesShapes (input)SHAPES--
OutputShape Indices (*)Shapes (optional output)INDEXPolygon shapefile with the calculated indices.-
Maximum Diameter (*)Shapes (optional output)DMAXLine shapefile showing the maximum diameter.-
OptionsDiameter of GyrationBooleanGYROS-Default: 0
Feret DiametersBooleanFERET-Default: 0
Number of DirectionsIntegerFERET_DIRSNumber of directions (0-90) to be analyzed.Minimum: 2
Default: 18
(*) optional

Command-line

Usage: saga_cmd shapes_polygons 7 [-SHAPES <str>] [-INDEX <str>] [-DMAX <str>] [-GYROS <str>] [-FERET <str>] [-FERET_DIRS <num>]
  -SHAPES:<str>    	Shapes
	Shapes (input)
  -INDEX:<str>     	Shape Indices
	Shapes (optional output)
  -DMAX:<str>      	Maximum Diameter
	Shapes (optional output)
  -GYROS:<str>     	Diameter of Gyration
	Boolean
	Default: 0
  -FERET:<str>     	Feret Diameters
	Boolean
	Default: 0
  -FERET_DIRS:<num>	Number of Directions
	Integer
	Minimum: 2
	Default: 18