Skip to content
Prev 21902 / 29559 Next

How to segment or split a spatial line in R

I should add that you can use geosphere::midPoint if you wanted the
great circle (longitude/latitude) mid-point instead of the Cartesian
midpoint.
But I now also see that you did not ask for splitting into
pre-existing segments, but into new ones ---- Edzer's solution seems
appropriate for that...
Robert
On Thu, Oct 23, 2014 at 9:46 AM, Robert J. Hijmans <r.hijmans at gmail.com> wrote: