a5_linestring_to_cells: Deprecated: use 'a5_line_string_to_cells()'

a5_linestring_to_cellsR Documentation

Deprecated: use a5_line_string_to_cells()

Description

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.

Usage

a5_linestring_to_cells(x, resolution, simplify = TRUE)

Arguments

x

A linestring-like geometry. One of:

  • Any geometry handleable by wk::wk_handle() containing one or more LINESTRING / MULTILINESTRING features.

  • A SpatVector of linestrings (requires the terra package).

  • A two-column numeric matrix (cbind(lon, lat)) of waypoints.

  • A data.frame with columns lon and lat.

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. If FALSE, return an a5_cell_list with one path per feature, suitable for a list column.

Value

As a5_line_string_to_cells().


a5R documentation built on Oct. 19, 2026, 5:08 p.m.