SAGA 9.4.2 | Tool Library Documentation

Create New Shapes Layer


Description

Creates a new empty shapes layer of given type, which might be either point, multipoint, line or polygon. Possible field types for the attributes table are:


Parameters

 NameTypeIdentifierDescriptionConstraints
OutputShapesdata object Shapes, output, optionalSHAPES--
OptionsNametextNAME-Default: New Shapes Layer
Geometry TypechoiceTYPE-Available Choices: [0] Point [1] Multipoint [2] Lines [3] Polygon Default: 0
Vertex TypechoiceVERTEX-Available Choices: [0] x, y [1] x, y, z [2] x, y, z, m Default: 0
PROJ Parameterstext, CMDCRS_PROJ--
Code IDinteger number, CMDCRS_CODE-Default: -1
Code Authoritytext, CMDCRS_AUTHORITY-Default: EPSG
Number of Attributesinteger numberNFIELDS-Minimum: 1 Default: 2
Field 1textNAME0NameDefault: Field 1
Typedata typeTYPE0TypeAvailable Choices: [0] string [1] date [2] color [3] unsigned 1 byte integer [4] signed 1 byte integer [5] unsigned 2 byte integer [6] signed 2 byte integer [7] unsigned 4 byte integer [8] signed 4 byte integer [9] unsigned 8 byte integer [10] signed 8 byte integer [11] 4 byte floating point number [12] 8 byte floating point number [13] binary Default: 0
Field 2textNAME1NameDefault: Field 2
Typedata typeTYPE1TypeAvailable Choices: [0] string [1] date [2] color [3] unsigned 1 byte integer [4] signed 1 byte integer [5] unsigned 2 byte integer [6] signed 2 byte integer [7] unsigned 4 byte integer [8] signed 4 byte integer [9] unsigned 8 byte integer [10] signed 8 byte integer [11] 4 byte floating point number [12] 8 byte floating point number [13] binary Default: 0

Command Line


Usage: saga_cmd shapes_tools 0 [-SHAPES ] [-NAME ] [-TYPE ] [-VERTEX ] [-CRS_PROJ ] [-CRS_CODE ] [-CRS_AUTHORITY ] [-NFIELDS ] [-FIELDS_NAME0 ] [-FIELDS_TYPE0 ] [-FIELDS_NAME1 ] [-FIELDS_TYPE1 ]
  -SHAPES:       	Shapes
	data object Shapes, output, optional
  -NAME:         	Name
	text
	Default: New Shapes Layer
  -TYPE:         	Geometry Type
	choice
	Available Choices:
	[0] Point
	[1] Multipoint
	[2] Lines
	[3] Polygon
	Default: 0
  -VERTEX:       	Vertex Type
	choice
	Available Choices:
	[0] x, y
	[1] x, y, z
	[2] x, y, z, m
	Default: 0
  -CRS_PROJ:     	PROJ Parameters
	text, CMD
  -CRS_CODE:     	Code ID
	integer number, CMD
	Default: -1
  -CRS_AUTHORITY:	Code Authority
	text, CMD
	Default: EPSG
  -NFIELDS:      	Number of Attributes
	integer number
	Minimum: 1
	Default: 2
  -FIELDS_NAME0: 	Field 1
	text
	Default: Field 1
  -FIELDS_TYPE0: 	Type
	data type
	Available Choices:
	[0] string
	[1] date
	[2] color
	[3] unsigned 1 byte integer
	[4] signed 1 byte integer
	[5] unsigned 2 byte integer
	[6] signed 2 byte integer
	[7] unsigned 4 byte integer
	[8] signed 4 byte integer
	[9] unsigned 8 byte integer
	[10] signed 8 byte integer
	[11] 4 byte floating point number
	[12] 8 byte floating point number
	[13] binary
	Default: 0
  -FIELDS_NAME1: 	Field 2
	text
	Default: Field 2
  -FIELDS_TYPE1: 	Type
	data type
	Available Choices:
	[0] string
	[1] date
	[2] color
	[3] unsigned 1 byte integer
	[4] signed 1 byte integer
	[5] unsigned 2 byte integer
	[6] signed 2 byte integer
	[7] unsigned 4 byte integer
	[8] signed 4 byte integer
	[9] unsigned 8 byte integer
	[10] signed 8 byte integer
	[11] 4 byte floating point number
	[12] 8 byte floating point number
	[13] binary
	Default: 0