gInterpolate | R Documentation |
Return points at specified distances along a line.
gInterpolate(spgeom, d, normalized = FALSE)
spgeom |
SpatialLines or SpatialLinesDataFrame object |
d |
Numeric vector specifying the distance along the line geometry |
normalized |
Logical determining if normalized distances should be used |
If normalized=TRUE
, the distances will be interpreted
as fractions of the line length.
SpatialPoints object
Rainer Stuetz
gInterpolate
gInterpolate(readWKT("LINESTRING(25 50, 100 125, 150 190)"),
d=seq(0, 1, by = 0.2), normalized = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.