wk_chunk_strategy_single | R Documentation |
It is often impractical, inefficient, or impossible to perform an operation on a vector of geometries with all the geometries loaded into memory at the same time. These functions help generalize the pattern of split-apply-combine to one or more handlers recycled along a common length. These functions are designed for developers rather than users and should be considered experimental.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.