resample_polyline: Resample Polyline

Description Usage Arguments Details Value Examples

Description

Functions from agoldev for splitting polylines

Usage

1
2
resample_polyline(polyline, interval_length = 20,
  add_original_points = TRUE, add_final_point = FALSE)

Arguments

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

Details

#' 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.

Value

df

Examples

1
resample_polyline(polyline, interval_length = section_length)

jschap1/WSEw documentation built on May 12, 2019, 10:50 a.m.