Description Usage Arguments References Examples
This function splits each line of an "sp" object of class SpatialLines into segments of a given length.
1 2 | splitLines(spatial_line, split_length = 10, return.dataframe = FALSE,
plot.results = FALSE)
|
spatial_line |
An "sp" object of class SpatialLines or SpatialLinesDataFrame. |
split_length |
The length of the segments to split the lines into, in units of the SpatialLines. Default 10. |
return.dataframe |
If TRUE, the functions returns a dataframe with IDs and coordinates, otherwise returns a SpatialLines object. Default FALSE. |
plot.results |
Visual representation of the results. If TRUE, the functions plots the original object in black and the vertex of the new segments in red. Default FALSE. |
http://math.stackexchange.com/questions/175896/finding-a-point-along-a-line-a-certain-distance-away-from-another-point?newreg=468f66d7274f449b8ecf3fa4e63f41fe
http://tutorial.math.lamar.edu/Classes/CalcII/Vectors_Basics.aspx
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.