Points Along Lines
Points placed along each line at a regular distance.
Pitfall. Engines differ on whether the first point is at the line's start, at the first full distance, or half a step in, and on whether the end gets a point.
Pitfall. Some take a fraction of the line's length or a number of points per unit length instead of a distance.
| Also called | Generate Points Along Lines, points along geometry, line sample, interpolate points, stationing |
|---|---|
| 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 |
|---|---|---|---|---|---|
distance | length | yes | Not stated | Not stated | Spacing along the line: a point at the start, then one every distance. |
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 | point | Not stated |
In each engine
| Engine | Tool | Parameters | Differences |
|---|---|---|---|
grass | v.to.points |
|
Preset: {"flag_i":true,"use":"vertex"} |
postgis | st_lineinterpolatepoints |
|
|
qgis | native:pointsalonglines |
|
|
sf | sf::st_line_sample |
|
|