SAGA-GIS Module Library Documentation (v2.1.4)

Module Import Point Cloud from Text File

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 numbers of these. In case you like to import additional attributes, you have to provide the number of attribute fields. After module execution, you will be prompted to provide their field numbers, names and datatypes.
You have also to decide on which field separator to use and if the first line of the input 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 numbers of those you like to import.

Module usage is different between SAGA GUI and SAGA CMD: With SAGA GUI you will get prompted to choose the fields to export, and to provide the field names and datatypes to use once you execute the module.
With SAGA CMD you have to provide three strings with the -FIELDS, -FIELDNAMES and -FIELDTYPES parameters. The first one must contain the field numbers, the second one the field names and the third one the choices of the datatype (see the GUI which number equals which datatype). Each field entry has to be separated by semicolon. Field numbers start with 1, e.g. -FIELDS="5;6;8" -FIELDNAMES="intensity;class;range" -FIELDTYPES="2;2;3".

Parameters

 NameTypeIdentifierDescriptionConstraints
OutputPoint Cloud (*)Data Object (optional output)POINTS--
OptionsText FileFile pathFILE--
X is Column ...IntegerXFIELDThe column holding the X-coordinate.Minimum: 1
Default: 1
Y is Column ...IntegerYFIELDThe column holding the Y-coordinate.Minimum: 1
Default: 2
Z is Column ...IntegerZFIELDThe column holding the Z-coordinate.Minimum: 1
Default: 3
FieldsTextFIELDSThe numbers (starting from 1) of the fields to import, separated by semicolon, e.g. "5;6;8"-
Field NamesTextFIELDNAMESThe name to use for each field, separated by semicolon, e.g. "intensity;class;range"-
Field TypesTextFIELDTYPESThe datatype to use for each field, separated by semicolon, e.g. "2;2;3;". The number equals the choice selection, see GUI version.-
Skip first lineBooleanSKIP_HEADERSkip first line as it contains column names.Default: 0
Field SeparatorChoiceFIELDSEPField SeparatorAvailable Choices:
[0] tabulator
[1] space
[2] comma
Default: 0
(*) optional

Command-line

Usage: saga_cmd io_shapes 16 [-POINTS <str>] [-FILE <str>] [-XFIELD <num>] [-YFIELD <num>] [-ZFIELD <num>] [-FIELDS <str>] [-FIELDNAMES <str>] [-FIELDTYPES <str>] [-SKIP_HEADER <str>] [-FIELDSEP <str>]
  -POINTS:<str>     	Point Cloud
	Data Object (optional output)
  -FILE:<str>       	Text File
	File path
  -XFIELD:<num>     	X is Column ...
	Integer
	Minimum: 1
	Default: 1
  -YFIELD:<num>     	Y is Column ...
	Integer
	Minimum: 1
	Default: 2
  -ZFIELD:<num>     	Z is Column ...
	Integer
	Minimum: 1
	Default: 3
  -FIELDS:<str>     	Fields
	Text
  -FIELDNAMES:<str> 	Field Names
	Text
  -FIELDTYPES:<str> 	Field Types
	Text
  -SKIP_HEADER:<str>	Skip first line
	Boolean
	Default: 0
  -FIELDSEP:<str>   	Field Separator
	Choice
	Available Choices:
	[0] tabulator
	[1] space
	[2] comma
	Default: 0