powered by
This is a wrapper around SpatialLinesMidPoints() that allows it to find the midpoint of lines that are not projected, which have a lat/long CRS.
SpatialLinesMidPoints()
line_midpoint(l)
A spatial lines object
Other lines: angle_diff, geo_toptail, is_linepoint, line2df, line_bearing, line_match, line_sample, line_segment, line_via, mats2line, n_sample_length, n_vertices, onewaygeo, onewayid, points2line, toptail_buff, toptailgs, update_line_geometry
angle_diff
geo_toptail
is_linepoint
line2df
line_bearing
line_match
line_sample
line_segment
line_via
mats2line
n_sample_length
n_vertices
onewaygeo
onewayid
points2line
toptail_buff
toptailgs
update_line_geometry
# NOT RUN { data(routes_fast) line_midpoint(routes_fast[2:5, ]) # }
Run the code above in your browser using DataLab