SAGA-GIS Module Library Documentation (v2.1.4)

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:
- character string
- 1 byte integer
- 2 byte integer
- 4 byte integer
- 4 byte floating point
- 8 byte floating point
- 32 bit true color (RGB)

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] character string
[1] 1 byte integer
[2] 2 byte integer
[3] 4 byte integer
[4] 4 byte floating point
[5] 8 byte floating point
[6] color (rgb)
Default: 0
- 4.
- 5. Default: Name
- 6. Available Choices:
[0] character string
[1] 1 byte integer
[2] 2 byte integer
[3] 4 byte integer
[4] 4 byte floating point
[5] 8 byte floating point
[6] color (rgb)
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] character string
	[1] 1 byte integer
	[2] 2 byte integer
	[3] 4 byte integer
	[4] 4 byte floating point
	[5] 8 byte floating point
	[6] color (rgb)
	Default: 0
  -FIELDS_NAME001:<str>	Name
	Text
	Default: Name
  -FIELDS_TYPE001:<str>	Type
	Choice
	Available Choices:
	[0] character string
	[1] 1 byte integer
	[2] 2 byte integer
	[3] 4 byte integer
	[4] 4 byte floating point
	[5] 8 byte floating point
	[6] color (rgb)
	Default: 0