fill.gaps: fill.gaps

View source: R/spatial clean fcns.R

fill.gapsR Documentation

fill.gaps

Description

maps fill.single.gap across all subsections of a single hwy. Takes ~denoded~ lines; expects nhpn hwy data. The purpose is that if a highway has a short break (<threshold) in the middle, this allows the polygon measure to ignore a short break. Call with return.gap.map=T to visualize what it does.

Usage

## S3 method for class 'gaps'
fill(hwy, return.gap.map = F, threshold = 200, ...)

Arguments

hwy

a single hwy, i.e., with single unique sign1, after divM::denode.lines is run on it

return.gap.map

Return mapview leaflet to visualize output of fcn

...

Arguments passed on to fill.single.gap

threshold

Threshold in crs units. Fill gap if distance between endpoint of given edge and another in lines is < this threshold.


kmcd39/divM documentation built on Oct. 21, 2023, 11:28 p.m.