powered by
Return points at specified distances along a line.
gInterpolate(spgeom, d, normalized = FALSE)
SpatialPoints object
SpatialLines or SpatialLinesDataFrame object
Numeric vector specifying the distance along the line geometry
Logical determining if normalized distances should be used
Rainer Stuetz
If normalized=TRUE, the distances will be interpreted as fractions of the line length.
normalized=TRUE
gInterpolate
gInterpolate(readWKT("LINESTRING(25 50, 100 125, 150 190)"), d=seq(0, 1, by = 0.2), normalized = TRUE)
Run the code above in your browser using DataLab