Description Usage Arguments Details Value Examples
Functions from agoldev for splitting polylines
1 2 | resample_polyline(polyline, interval_length = 20,
add_original_points = TRUE, add_final_point = FALSE)
|
polyline: |
a spatial polyline data frame |
interval_length: |
the length of the segments to split the lines into, in units of the polyline coordinates |
add_original_points: |
whether or not the original points of the polyline should be added to the resulting line if set FALSE, the resulting line will be shorter |
add_final_point: |
whether or not the final point of the polyline should be added to the resulting line |
#' Source: https://stackoverflow.com/questions/38700246/how-do-i-split-divide-polyline-shapefiles-into-equally-length-smaller-segments The function splits a polyline into segments of a given length.
df
1 | resample_polyline(polyline, interval_length = section_length)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.