SAGA-GIS Module Library Documentation (v2.2.2)

Module 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 (optional output)SHAPES--
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-6 Parameters:
- 1.
- 2. Default: Name
- 3. 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
- 4.
- 5. Default: Name
- 6. 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_NAME000 <str>] [-FIELDS_TYPE000 <str>] [-FIELDS_NAME001 <str>] [-FIELDS_TYPE001 <str>]
  -SHAPES:<str>        	Shapes
	Data Object (optional output)
  -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_NAME000:<str>	Name
	Text
	Default: Name
  -FIELDS_TYPE000:<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_NAME001:<str>	Name
	Text
	Default: Name
  -FIELDS_TYPE001:<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