SAGA-GIS Tool Library Documentation (v9.1.2)

Tool Polygon Centroids

Creates a points layer containing the centroids of the input polygon layer.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputPolygonsShapes, inputPOLYGONS--
OutputCentroidsShapes, outputCENTROIDS--
OptionsCentroids for each partBooleanMETHOD-Default: 0
Force InsideBooleanINSIDEIf a centroid falls outside its polygon, then move it to the closest boundary.Default: 0

Command-line

Usage: saga_cmd shapes_polygons 1 [-POLYGONS <str>] [-CENTROIDS <str>] [-METHOD <str>] [-INSIDE <str>]
  -POLYGONS:<str> 	Polygons
	Shapes, input
  -CENTROIDS:<str>	Centroids
	Shapes, output
  -METHOD:<str>   	Centroids for each part
	Boolean
	Default: 0
  -INSIDE:<str>   	Force Inside
	Boolean
	Default: 0