Import Point Cloud from Text File
- Author: V. Wichmann, LASERDATA GmbH (c) 2009
- Menu: File | Shapes | Import
Description
Creates a point cloud from a text file.
The input file must have at least three columns holding the x, y, z coordinates of each point. You must specify the field index (i.e. the column) of these. Field index starts to count with 1. In case you like to import additional attributes, you have to provide the field indexes for those attributes with the -FIELDS option as integer numbers separated by semicolon (e.g. "-FIELDS=4;5;8").
You have also to select the field separator that is used by the file and if the first line of the file should be skipped (in case it contains column headings).
The columns in the input file can be in any order, and you can omit columns, but you have to provide the correct field index for those fields that you like to import.
The tool usage differs slightly between SAGA GUI and SAGA CMD. With SAGA GUI you can specify names and types for additional fields in the 'Specifications' sub dialog. To do this using SAGA CMD you have to use the -FIELDNAMES and -FIELDTYPES options. The first one is for the field names, the second for the data type specification (see the GUI which number equals which data type). Again entries have to be separated by semicolons, e.g. "-FIELDNAMES=intensity;class;range -FIELDTYPES=2;2;3".
Parameters
| Name | Type | Identifier | Description | Constraints |
Output | Point Cloud | point cloud, output | POINTS | - | - |
Options | Text File | file path | FILE | - | - |
Field Separator | choice | SEPARATOR | Field Separator | Available Choices:
[0] tabulator
[1] space
[2] comma
Default: 0 |
Skip first line | boolean | SKIP_HEADER | Skip first line as it contains column names. | Default: 0 |
X is Column ... | integer number | XFIELD | The column holding the X-coordinate. | Minimum: 1
Default: 1 |
Y is Column ... | integer number | YFIELD | The column holding the Y-coordinate. | Minimum: 1
Default: 2 |
Z is Column ... | integer number | ZFIELD | The column holding the Z-coordinate. | Minimum: 1
Default: 3 |
Fields | text | FIELDS | The index (starting with 1) of the fields to import, separated by semicolon, e.g. "5;6;8" | - |
Field Names | text, CMD | FIELDNAMES | The name to use for each field, separated by semicolon, e.g. "intensity;class;range" | - |
Field Types | text, CMD | FIELDTYPES | The datatype to use for each field, separated by semicolon, e.g. "2;2;3;". The number equals the choice selection, see GUI version. | - |
PROJ Parameters | text, CMD | CRS_PROJ | - | - |
Code ID | integer number, CMD | CRS_CODE | - | Default: -1 |
Code Authority | text, CMD | CRS_AUTHORITY | - | Default: EPSG |
Command Line
Usage: saga_cmd io_shapes 16 [-POINTS ] [-FILE ] [-SEPARATOR ] [-SKIP_HEADER ] [-XFIELD ] [-YFIELD ] [-ZFIELD ] [-FIELDS ] [-FIELDNAMES ] [-FIELDTYPES ] [-CRS_PROJ ] [-CRS_CODE ] [-CRS_AUTHORITY ]
-POINTS: Point Cloud
point cloud, output
-FILE: Text File
file path
-SEPARATOR: Field Separator
choice
Available Choices:
[0] tabulator
[1] space
[2] comma
Default: 0
-SKIP_HEADER: Skip first line
boolean
Default: 0
-XFIELD: X is Column ...
integer number
Minimum: 1
Default: 1
-YFIELD: Y is Column ...
integer number
Minimum: 1
Default: 2
-ZFIELD: Z is Column ...
integer number
Minimum: 1
Default: 3
-FIELDS: Fields
text
-FIELDNAMES: Field Names
text, CMD
-FIELDTYPES: Field Types
text, CMD
-CRS_PROJ: PROJ Parameters
text, CMD
-CRS_CODE: Code ID
integer number, CMD
Default: -1
-CRS_AUTHORITY: Code Authority
text, CMD
Default: EPSG