wk_chunk_strategy_single {wk} | R Documentation |
Chunking strategies
wk_chunk_strategy_single()
wk_chunk_strategy_feature(n_chunks = NULL, chunk_size = NULL)
wk_chunk_strategy_coordinates(n_chunks = NULL, chunk_size = NULL, reduce = "*")
n_chunks, chunk_size |
Exactly one of the number of
chunks or the chunk size. For |
reduce |
For |
A function that returns a data.frame
with columns from
and to
when called with a handleable
and the feature count.
feat <- c(as_wkt(xy(1:4, 1:4)), wkt("LINESTRING (1 1, 2 2)"))
wk_chunk_strategy_single()(list(feat), 5)
wk_chunk_strategy_feature(chunk_size = 2)(list(feat), 5)
wk_chunk_strategy_coordinates(chunk_size = 2)(list(feat), 5)