SAGA 9.6.1 | Tool Library Documentation

Import Point Cloud from Text File


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

 NameTypeIdentifierDescriptionConstraints
OutputPoint Cloudpoint cloud, outputPOINTS--
OptionsText Filefile pathFILE--
Field SeparatorchoiceSEPARATORField SeparatorAvailable Choices: [0] tabulator [1] space [2] comma [3] semicolon Default: 0
Skip first linebooleanSKIP_HEADERSkip first line as it contains column names.Default: 0
X is Column ...integer numberXFIELDThe column holding the X-coordinate.Minimum: 1 Default: 1
Y is Column ...integer numberYFIELDThe column holding the Y-coordinate.Minimum: 1 Default: 2
Z is Column ...integer numberZFIELDThe column holding the Z-coordinate.Minimum: 1 Default: 3
FieldstextFIELDSThe index (starting with 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.-
Coordinate System DefinitiontextCRS_STRINGSupported formats comprise PROJ and WKT strings, object codes (e.g. "EPSG:4326").-

Command Line


Usage: saga_cmd io_shapes 16 [-POINTS ] [-FILE ] [-SEPARATOR ] [-SKIP_HEADER ] [-XFIELD ] [-YFIELD ] [-ZFIELD ] [-FIELDS ] [-FIELDNAMES ] [-FIELDTYPES ] [-CRS_STRING ]
  -POINTS:     	Point Cloud
	point cloud, output
  -FILE:       	Text File
	file path
  -SEPARATOR:  	Field Separator
	choice
	Available Choices:
	[0] tabulator
	[1] space
	[2] comma
	[3] semicolon
	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
  -FIELDTYPES: 	Field Types
	text
  -CRS_STRING: 	Coordinate System Definition
	text