geo-registry

sf::st_line_sample

How sf runs Points Along Lines: sf::st_line_sample.

About this implementation
Engine sf
Tool name sf::st_line_sample
Interface r
Implements Points Along Lines
Documentation Not stated
Effects modifies input: no, network: no
Notes Not stated
Status active

Parameters

Name Type Required Default Choices Note
x any yes Not stated Not stated Not stated
n any yes Not stated Not stated Not stated
density any yes Not stated Not stated Not stated
type any no "regular" Not stated Not stated
sample any no NULL Not stated Not stated

How it maps to the operation

Operation parameter Parameter here Note
layer x Not stated
distance Not stated density is points per unit of length, the inverse of the distance; n gives a number of points instead.
unit Not stated always crs-units

Differences from the operation

  • With type regular the points sit half a step in from each end, not at the start.
  • Returns one MULTIPOINT per line.

Harvested by the r-packages harvester from engine version 1.1.3. Names can change when an engine is harvested again.