Fast union/merge of lines by grouping column, using `terra`'s `aggregate()` and returning an `sf` layer. Final conversion to clean LINESTRINGs is delegated to an internal helper `flowpaths_to_linestrings()`.
Fast union/merge of lines by grouping column, using `terra`'s `aggregate()` and returning an `sf` layer. Final conversion to clean LINESTRINGs is delegated to an internal helper `flowpaths_to_linestrings()`.