a5_linestring_to_cells() was renamed a5_line_string_to_cells() to
match line_string_to_cells() in the other A5 libraries. The old name
still works but warns.
Arguments
- x
A linestring-like geometry. One of:
Any geometry handleable by
wk::wk_handle()containing one or moreLINESTRING/MULTILINESTRINGfeatures.A
SpatVectorof linestrings (requires theterrapackage).A two-column numeric matrix (
cbind(lon, lat)) of waypoints.A
data.framewith columnslonandlat.
- resolution
Integer scalar target resolution (0–30).
- simplify
Logical scalar. If
TRUE(default), return one flat a5_cell vector with the paths of every feature concatenated in feature order; a cell crossed by several features appears once per feature. IfFALSE, return an a5_cell_list with one path per feature, suitable for a list column.
