split_lines: Split lines into same length segments

Description Usage Arguments Details Value Author(s) References

View source: R/split_lines.R

Description

This function splits each line of an "sp" object of class SpatialLines into segments of a given length.

Usage

1
split_lines(spatial_line, split_length = 500)

Arguments

spatial_line

An "sp" object of class SpatialLines or SpatialLinesDataFrame.

split_length

The length of the segments to split the lines into, in units of the SpatialLines. Default 500.

Details

split_lines

Value

SpatialLinesDataFrame

Author(s)

Duccio Aiazzi

References

http://math.stackexchange.com/questions/175896/finding-a-point-along-a-line-a-certain-distance-away-from-another-point?newreg=468f66d7274f449b8ecf3fa4e63f41fe

http://tutorial.math.lamar.edu/Classes/CalcII/Vectors_Basics.aspx


berdinazzi/roadHotspots documentation built on Feb. 3, 2022, 4:44 a.m.