SAGA-GIS Module Library Documentation (v2.1.3)

Module Generate Shapes

The module allows to generate point, line or polygon shapes from a table with x and y coordinates and an identifier. 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 identifier.-
XTable fieldFIELD_XField with x-coordinate.-
YTable fieldFIELD_YField with y-coordinate.-
Shape TypeChoiceSHAPE_TYPEShape type to generate.Available Choices:
[0] Point(s)
[1] Line(s)
[2] Polygon(s)
Default: 0

Command-line

Usage: saga_cmd shapes_tools 22 -INPUT <str> [-FIELD_ID <str>] [-FIELD_X <str>] [-FIELD_Y <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
  -SHAPE_TYPE:<str>	Shape Type
	Choice
	Available Choices:
	[0] Point(s)
	[1] Line(s)
	[2] Polygon(s)
	Default: 0
  -OUTPUT:<str>    	Output
	Shapes (output)