SAGA-GIS Tool Library Documentation (v9.1.2)

Tool Create New Shapes Layer

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:
- string
- date
- color
- unsigned 1 byte integer
- signed 1 byte integer
- unsigned 2 byte integer
- signed 2 byte integer
- unsigned 4 byte integer
- signed 4 byte integer
- unsigned 8 byte integer
- signed 8 byte integer
- 4 byte floating point number
- 8 byte floating point number
- binary

Parameters

 NameTypeIdentifierDescriptionConstraints
OutputShapes (*)Data Object Shapes, output, optionalSHAPES--
OptionsNameTextNAME-Default: New Shapes Layer
Shape 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
Number of AttributesIntegerNFIELDS-Minimum: 1
Default: 2
AttributesParametersFIELDS-4 Parameters:
- 1. Default: Field 1
- 2. 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
- 3. Default: Field 2
- 4. 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
(*) optional

Command-line

Usage: saga_cmd shapes_tools 0 [-SHAPES <str>] [-NAME <str>] [-TYPE <str>] [-VERTEX <str>] [-NFIELDS <num>] [-FIELDS_NAME0 <str>] [-FIELDS_TYPE0 <str>] [-FIELDS_NAME1 <str>] [-FIELDS_TYPE1 <str>]
  -SHAPES:<str>      	Shapes
	Data Object Shapes, output, optional
  -NAME:<str>        	Name
	Text
	Default: New Shapes Layer
  -TYPE:<str>        	Shape Type
	Choice
	Available Choices:
	[0] Point
	[1] Multipoint
	[2] Lines
	[3] Polygon
	Default: 0
  -VERTEX:<str>      	Vertex Type
	Choice
	Available Choices:
	[0] x, y
	[1] x, y, z
	[2] x, y, z, m
	Default: 0
  -NFIELDS:<num>     	Number of Attributes
	Integer
	Minimum: 1
	Default: 2
  -FIELDS_NAME0:<str>	Field 1
	Text
	Default: Field 1
  -FIELDS_TYPE0:<str>	Type
	Choice
	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:<str>	Field 2
	Text
	Default: Field 2
  -FIELDS_TYPE1:<str>	Type
	Choice
	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