Split Lines by Length
Cuts each line into pieces of a given length, with a shorter last piece.
Pitfall. Some tools make all pieces equal (and shorter than the length) instead of leaving a short last piece.
Pitfall. In a geographic CRS the length is in degrees unless the engine measures on the ellipsoid.
| Also called | Split Line By Length, chunk lines, line chunk, segment lines |
|---|---|
| Group | vector/geometry |
| Checks | crs.measure |
| Pitfalls | 2 listed above |
| Columbus tool | Not stated |
| Notes | Not stated |
| Status | active |
| Broader | Not stated |
| Narrower | Not stated |
| Related |
Parameters
| Name | Type | Required | Default | Values | Note |
|---|---|---|---|---|---|
length | length | yes | Not stated | Not stated | Not stated |
unit | enum | yes | Not stated | m, ft, us-ft, km, mi | Not stated |
Inputs and outputs
| Direction | Name | Type | Geometry | Note |
|---|---|---|---|---|
| Input | layer | vector | line | Not stated |
| Output | output | vector | line | Not stated |
In each engine
| Engine | Tool | Parameters | Differences |
|---|---|---|---|
grass | v.split |
|
Preset: {"flag_f":true} |
qgis | native:splitlinesbylength |
| None noted |
turf-js | turf.lineChunk |
|
|