This function identifies and removes dangling line segments (lines with one end not connected to another line)
within a specified tolerance.
Usage
removeDangles(network, tolerance = 0.001)
Arguments
- network
An sf
object of class LINESTRING representing the road network.
- tolerance
The distance tolerance for identifying isolated endpoints as dangling.
Value
An sf
object with dangling line segments removed.