View source: R/geometrical_functions_sf.R
lixelize_lines | R Documentation |
Cut the lines of a feature collection of linestrings into lixels with a specified minimal distance may fail if the line geometries are self intersecting.
lixelize_lines(lines, lx_length, mindist = NULL)
lines |
The sf object with linestring geometry type to modify |
lx_length |
The length of a lixel |
mindist |
The minimum length of a lixel. After cut, if the length of the final lixel is shorter than the minimum distance, then it is added to the previous lixel. if NULL, then mindist = maxdist/10. Note that the segments that are already shorter than the minimum distance are not modified. |
An sf object with linestring geometry type
data(mtl_network)
lixels <- lixelize_lines(mtl_network,150,50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.