Split Lines
- Author: Justus Spitzm_ller, scilands GmbH _ 2021
- Menu: Shapes | 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
Name | Type | Identifier | Description | Constraints | |
---|---|---|---|---|---|
Input | Input Lines | shapes, input | INPUT | Input line shapefile. | - |
Output | Output Lines | shapes, output | OUTPUT | Output line shapefile. | - |
Inserted Points | shapes, output, optional | INS_POINTS | The points at which the lines were split. | - | |
Options | Distribution | choice | DISTRIBUTION | Choose 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 |
Length | floating point number | LENGTH | Output line length used to split the lines [map units]. | Minimum: 0.000000 Default: 5.000000 | |
Caps | choice | CAPS_LENGTH | - | Available Choices: [0] start full length [1] start remaining length [2] even ends Default: 0 | |
Number Of Splits | integer number | NUMBER | The number of divisions per line [-]. | Minimum: 0 Default: 5 | |
Caps | choice | CAPS_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