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.
line_midpoint(l)
| l | A spatial lines object |
|---|
Other lines:
angle_diff(),
geo_toptail(),
is_linepoint(),
line2df(),
line2points(),
line_bearing(),
line_breakup(),
line_match(),
line_sample(),
line_segment(),
line_via(),
mats2line(),
n_sample_length(),
n_vertices(),
onewaygeo(),
points2line(),
toptail_buff(),
toptailgs(),
update_line_geometry()
#>#> Warning: CRS object has comment, which is lost in output#> class : SpatialPointsDataFrame #> features : 4 #> extent : -1.533454, -1.514055, 53.82031, 53.82947 (xmin, xmax, ymin, ymax) #> crs : +proj=longlat +datum=WGS84 +no_defs #> variables : 17 #> names : plan, start, finish, length, time, waypoint, cum_hill, change_elev, dif_max_min, up_tot, down_tot, av_incline, co2_saving, calories, busyness, ... #> min values : 1, 1, 1, 1535, 313, 37, 87, -61, 39, 14, 47, 0.0376344086021505, 286, 20, 2259, ... #> max values : 1, 1, 1, 2976, 829, 97, 112, -4, 65, 54, 75, 0.0566775244299674, 555, 78, 7062, ...