Line Slice
The part of each line between two distances from its start, as turf.lineSliceAlong. Lines only.
Syntax
{ "id": "n1", "op": "line-slice", "name": "line-slice", "x": 0, "y": 0, "params": {} }
An edge into it ends at "targetPort": "in"; one out of it starts at "sourcePort": "out"; a parameter is set in params (leave out the ones at their default), driven by an edge to par:start, or read elsewhere as ch('line-slice/start').
Inputs
| Port | Type | Takes |
|---|---|---|
in | table | one edge |
Parameters
| Parameter | Kind | Default | Choices |
|---|---|---|---|
start | float | 0 | |
stop | float | 1 | |
units | menu | "kilometers" | kilometers, meters, miles, nauticalmiles, feet, degrees |
Outputs
| Port | Type |
|---|---|
out | table |
Details
- Category: Geometry
- Operator:
line-slice
Older projects
Projects saved before documents used operator classes. These convert to line-slice when they open: LineSliceOp.