SAGA 9.4.2 | 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 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 Namestext, CMDFIELDNAMESThe name to use for each field, separated by semicolon, e.g. "intensity;class;range"-
Field Typestext, CMDFIELDTYPESThe datatype to use for each field, separated by semicolon, e.g. "2;2;3;". The number equals the choice selection, see GUI version.-
PROJ Parameterstext, CMDCRS_PROJ--
Code IDinteger number, CMDCRS_CODE-Default: -1
Code Authoritytext, CMDCRS_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