Applies a bounded Gaussian-kernel smoother to one continuous Flowline while preserving its endpoints and recording portable smoothing evidence.

smooth_flowline(flowline, bandwidth = 2, max_displacement = bandwidth)

Arguments

flowline

A one-feature, projected sf LINESTRING.

bandwidth

Positive numeric smoothing bandwidth in CRS map units. The default of 2 carries forward the legacy Flowline tool's PAEK tolerance.

max_displacement

Maximum permitted Hausdorff displacement in CRS map units. Defaults to the smoothing bandwidth.

Value

The smoothed sf Flowline with smoothing method, parameter, package, displacement, length-change, and validation fields.

Details

The portable implementation uses smoothr::smooth() with Gaussian kernel regression and no unnecessary densification. It is not claimed to reproduce Esri PAEK vertices. The input coordinates remain the provenance record; callers should retain the raw selected path separately.