SAGA-GIS Tool Library Documentation (v9.2.0)

Tool Polygon Properties

Add general and geometric properties of polygons to its attributes.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputPolygonsshapes, inputPOLYGONS--
OutputPolygons with Property Attributes (*)shapes, output, optionalOUTPUTIf not set property attributes will be added to the orignal layer.-
OptionsCopy Attributestable fieldsFIELDSSelect one or more attributes to be copied to the target layer.-
Number of PartsbooleanBPARTS-Default: 0
Number of VerticesbooleanBPOINTS-Default: 0
ExtentbooleanBEXTENT-Default: 0
CentroidbooleanBCENTER-Default: 0
PerimeterbooleanBLENGTH-Default: 1
AreabooleanBAREA-Default: 1
Scalingfloating point numberSCALINGScaling factor for perimeter and area (squared). meter to feet = 1 / 0.3048 = 3.2808Minimum: 0.000000
Default: 1.000000
(*) optional

Command-line

Usage: saga_cmd shapes_polygons 2 [-POLYGONS <str>] [-OUTPUT <str>] [-FIELDS <str>] [-BPARTS <str>] [-BPOINTS <str>] [-BEXTENT <str>] [-BCENTER <str>] [-BLENGTH <str>] [-BAREA <str>] [-SCALING <double>]
  -POLYGONS:<str>  	Polygons
	shapes, input
  -OUTPUT:<str>    	Polygons with Property Attributes
	shapes, output, optional
  -FIELDS:<str>    	Copy Attributes
	table fields
  -BPARTS:<str>    	Number of Parts
	boolean
	Default: 0
  -BPOINTS:<str>   	Number of Vertices
	boolean
	Default: 0
  -BEXTENT:<str>   	Extent
	boolean
	Default: 0
  -BCENTER:<str>   	Centroid
	boolean
	Default: 0
  -BLENGTH:<str>   	Perimeter
	boolean
	Default: 1
  -BAREA:<str>     	Area
	boolean
	Default: 1
  -SCALING:<double>	Scaling
	floating point number
	Minimum: 0.000000
	Default: 1.000000