Select and Delete
- Author: M.Bock & O.Conrad (c) 2018
- Menu: Shapes | Selection
Description
This tool selects and deletes all features from a shapes layer, which meet the select criterion defined by the expression.
If the Expression Type is set to string expression, the selection uses the given character string expression and the chosen Select if... option. If an Attribute field is selected, only this attribute will be evaluated, or all attributes if not.
If the Expression Type is set to numerical expression, those records will be selected for deletion, for which the expression evaluates to non-zero. The expression syntax is the same as the one for the table calculator. If an Attribute is set, 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
Name | Type | Identifier | Description | Constraints | |
---|---|---|---|---|---|
Input | Shapes | shapes, input | SHAPES | - | - |
Options | Attribute | table field | ATTRIBUTE | - | - |
Expression Type | choice | METHOD | - | Available Choices: [0] string expression [1] numerical expression Default: 0 | |
Expression | text | EXPRESSION | - | Default: expression | |
Select if... | choice | COMPARE | - | Available Choices: [0] attribute is identical with search expression [1] attribute contains search expression [2] attribute is contained in search expression Default: 0 | |
Case Sensitive | boolean | CASE | - | Default: 0 |
Command Line
Usage: saga_cmd shapes_tools select_and_delete [-SHAPES] [-ATTRIBUTE ] [-METHOD ] [-EXPRESSION ] [-COMPARE ] [-CASE ] -SHAPES: Shapes shapes, input -ATTRIBUTE: Attribute table field -METHOD: Expression Type choice Available Choices: [0] string expression [1] numerical expression Default: 0 -EXPRESSION: Expression text Default: expression -COMPARE: Select if... choice Available Choices: [0] attribute is identical with search expression [1] attribute contains search expression [2] attribute is contained in search expression Default: 0 -CASE: Case Sensitive boolean Default: 0