SAGA-GIS Tool Library Documentation (v7.2.0)

Tool Generate Shapes

The tool allows one to generate point, line or polygon shapes from a table with the following attribute fields:

- identifier
- x coordinate
- y coordinate
- optional: z coordinate (this will create a 3D shapefile)

The table must be sorted in vertex order.

The identifier has different meanings:

* Point Shapes: The identifier is arbitrary

* Line Shapes: The identifier is unique for each line

* Polygon Shapes: The identifier is unique for each polygon; the first polygon vertex may but must not be duplicated in order to close the polygon

Parameters

 NameTypeIdentifierDescriptionConstraints
InputInputTable (input)INPUTTable with coordinates.-
OutputOutputShapes (output)OUTPUTGenerated Shapefile.-
OptionsIDTable fieldFIELD_IDField with the identifier.-
XTable fieldFIELD_XField with the x coordinate.-
YTable fieldFIELD_YField with the y coordinate.-
Z (*)Table fieldFIELD_ZField with the z coordinate.-
Shape TypeChoiceSHAPE_TYPEShape type to generate.Available Choices:
[0] Point(s)
[1] Line(s)
[2] Polygon(s)
Default: 0
(*) optional

Command-line

Usage: saga_cmd shapes_tools 22 [-INPUT <str>] [-FIELD_ID <str>] [-FIELD_X <str>] [-FIELD_Y <str>] [-FIELD_Z <str>] [-SHAPE_TYPE <str>] [-OUTPUT <str>]
  -INPUT:<str>     	Input
	Table (input)
  -FIELD_ID:<str>  	ID
	Table field
  -FIELD_X:<str>   	X
	Table field
  -FIELD_Y:<str>   	Y
	Table field
  -FIELD_Z:<str>   	Z
	Table field
  -SHAPE_TYPE:<str>	Shape Type
	Choice
	Available Choices:
	[0] Point(s)
	[1] Line(s)
	[2] Polygon(s)
	Default: 0
  -OUTPUT:<str>    	Output
	Shapes (output)