SAGA-GIS Tool Library Documentation (v7.2.0)

Tool Select by Attributes... (Numerical Expression)

Selects records for which the expression evaluates to non-zero. The expression syntax is the same as the one for the table calculator. If an attribute field is selected, the expression evaluates only this attribute, which can be addressed with the letter 'a' in the expression formula. If no attribute is selected, attributes are addressed by the character 'f' (for 'field') followed by the field number (i.e.: f1, f2, ..., fn) or by the field name in square brackets (e.g.: [Field Name]).
Examples:
- f1 > f2
- eq([Population] * 2, [Area])

Parameters

 NameTypeIdentifierDescriptionConstraints
InputShapesShapes (input)SHAPES--
OptionsAttribute (*)Table fieldFIELDattribute to be evaluated by expression ('a'); if not set all attributes can be addressed (f1, f2, ..., fn).-
ExpressionTextEXPRESSION-Default: a > 0
Use No-DataBooleanUSE_NODATA-Default: 0
MethodChoiceMETHOD-Available Choices:
[0] new selection
[1] add to current selection
[2] select from current selection
[3] remove from current selection
Default: 0
(*) optional

Command-line

Usage: saga_cmd shapes_tools 3 [-SHAPES <str>] [-FIELD <str>] [-EXPRESSION <str>] [-USE_NODATA <str>] [-METHOD <str>]
  -SHAPES:<str>    	Shapes
	Shapes (input)
  -FIELD:<str>     	Attribute
	Table field
  -EXPRESSION:<str>	Expression
	Text
	Default: a > 0
  -USE_NODATA:<str>	Use No-Data
	Boolean
	Default: 0
  -METHOD:<str>    	Method
	Choice
	Available Choices:
	[0] new selection
	[1] add to current selection
	[2] select from current selection
	[3] remove from current selection
	Default: 0