powered by
Find the mid-point of lines
line_midpoint(l, tolerance = NULL)
A spatial lines object
The tolerance used to break lines at verteces. See lwgeom::st_linesubstring().
lwgeom::st_linesubstring()
Other lines: angle_diff(), geo_toptail(), is_linepoint(), line2df(), line2points(), line_bearing(), line_breakup(), line_segment(), line_via(), mats2line(), n_vertices(), onewaygeo(), points2line(), toptail_buff()
angle_diff()
geo_toptail()
is_linepoint()
line2df()
line2points()
line_bearing()
line_breakup()
line_segment()
line_via()
mats2line()
n_vertices()
onewaygeo()
points2line()
toptail_buff()
l = routes_fast_sf[2:5, ] plot(l$geometry, col = 2:5) midpoints = line_midpoint(l) plot(midpoints, add = TRUE)
Run the code above in your browser using DataLab