SAGA 9.3.3 | Tool Library Documentation

Split Lines


Description

The tool allows one to split lines into multiple lines. The lines can be split based on a user-defined line length or the given number of divisions of each input line. Optionally, a point shapes layer with the points at which the lines were split can be created. This can be used, e.g., to create the midpoint of each polyline by dividing each line into two halves.


Parameters

 NameTypeIdentifierDescriptionConstraints
InputInput Linesshapes, inputINPUTInput line shapefile.-
OutputOutput Linesshapes, outputOUTPUTOutput line shapefile.-
Inserted Pointsshapes, output, optionalINS_POINTSThe points at which the lines were split.-
OptionsDistributionchoiceDISTRIBUTIONChoose the method how to split the lines, either by a given line length or by the given number of divisions.Available Choices: [0] by length [1] by number Default: 0
Lengthfloating point numberLENGTHOutput line length used to split the lines [map units].Minimum: 0.000000 Default: 5.000000
CapschoiceCAPS_LENGTH-Available Choices: [0] start full length [1] start remaining length [2] even ends Default: 0
Number Of Splitsinteger numberNUMBERThe number of divisions per line [-].Minimum: 0 Default: 5
CapschoiceCAPS_NUMBER-Available Choices: [0] full segment [1] half segment Default: 0

Command Line


Usage: saga_cmd shapes_lines 11 [-INPUT ] [-OUTPUT ] [-INS_POINTS ] [-DISTRIBUTION ] [-LENGTH ] [-CAPS_LENGTH ] [-NUMBER ] [-CAPS_NUMBER ]
  -INPUT:       	Input Lines
	shapes, input
  -OUTPUT:      	Output Lines
	shapes, output
  -INS_POINTS:  	Inserted Points
	shapes, output, optional
  -DISTRIBUTION:	Distribution
	choice
	Available Choices:
	[0] by length
	[1] by number
	Default: 0
  -LENGTH:   	Length
	floating point number
	Minimum: 0.000000
	Default: 5.000000
  -CAPS_LENGTH: 	Caps
	choice
	Available Choices:
	[0] start full length
	[1] start remaining length
	[2] even ends
	Default: 0
  -NUMBER:      	Number Of Splits
	integer number
	Minimum: 0
	Default: 5
  -CAPS_NUMBER: 	Caps
	choice
	Available Choices:
	[0] full segment
	[1] half segment
	Default: 0