Formatted Text
- Author: O.Conrad (c) 2019
- Menu: Table | Tools;Shapes | Attributes
Description
With this tool you can create new text field contents from the contents of other fields. To address other field's contents you have some format options as listed below.
Fields are addressed either by their zero based column number or by their name.
If the use no-data flag is unchecked and a no-data value appears in a record's input fields, the result will be an empty text string.
Field contents can be combined using the '+' operator. Free text arguments have to be added in quota.
A simple example:
"No. " + index(1) + ": the value of '" + upper(0) + "' is " + number(1, 2)
index(offset = 0) | record's index |
string(field) | field's content as it is |
lower(field) | field's content as lower case text |
upper(field) | field's content as upper case text |
integer(field) | field's content as integer number |
real(field, precision) | field's content as real number with optional precision argument |
Parameters
| Name | Type | Identifier | Description | Constraints |
Input | Table | table, input | TABLE | - | - |
Output | Result | table, output, optional | RESULT_TABLE | - | - |
Result | shapes, output, optional | RESULT_SHAPES | - | - |
Options | Field | table field | FIELD | - | - |
Field Name | text | NAME | - | Default: New Field |
Format | text | FORMAT | - | Default: "Index: " + index(1) |
Selection | boolean | SELECTION | - | Default: 1 |
Use No-Data | boolean | USE_NODATA | - | Default: 0 |
Command Line
Usage: saga_cmd table_tools 24 [-TABLE ] [-FIELD ] [-NAME ] [-FORMAT ] [-SELECTION ] [-USE_NODATA ] [-RESULT_TABLE ] [-RESULT_SHAPES ]
-TABLE: Table
table, input
-FIELD: Field
table field
-NAME: Field Name
text
Default: New Field
-FORMAT: Format
text
Default: "Index: " + index(1)
-SELECTION: Selection
boolean
Default: 1
-USE_NODATA: Use No-Data
boolean
Default: 0
-RESULT_TABLE: Result
table, output, optional
-RESULT_SHAPES: Result
shapes, output, optional