Identify track points that intersect with a barrier polygon
get_barrier_segments.Rd
This function identifies the segments of consecutive points that intersect with the
barrier polygon feature. The result is a data frame of segment records that identify
portions of the track that will need to be re-routed. The result from this function
can be directly passed into the prt_nearestnode()
.
Arguments
- trkpts
Simple Feature points ('sf', 'sfc_POINT'/'sfc_MULTIPOINT') that represent track points. Order is accepted as is and the bounding box of trkpts should be within the bounding box of the barrier polygon.
- barrier
Simple Feature polygon ('sf', 'sfc_POLYGON'/'sfc_MULTIPOLYGON') representing the barrier feature. Should be the same barrier as supplied to the
prt_visgraph()
function.