I'm trying to extract evenly spaced points along a shapefile (line) in R where the line isn't necessarily contiguous (essentially extracting vertices, but equally spaced). I've seen similar questions asked elsewhere but not with an adequate answer e.g.
[Generate regularly spaced points in polygon
Process would be: Read line shapefile and set crs Calculate point every x spacing along line (e.g. every 1km) Convert points to lat/long Export
Has anyone done similar before/have some code that can do this?
Thank you