Cut the lines of a feature collection of linestrings into lixels with a specified minimal distance may fail if the line geometries are self intersecting with multicore support.
lixelize_lines.mc(
lines,
lx_length,
mindist = NULL,
verbose = TRUE,
chunk_size = 100
)
A feature collection of linestrings to convert to lixels
The length of a lixel
The minimum length of a lixel. After cut, if the length of the final lixel is shorter than the minimum distance, then it is added to the previous lixel. If NULL, then mindist = maxdist/10
A Boolean indicating if a progress bar must be displayed
The size of a chunk used for multiprocessing. Default is 100.
A feature collection of linestrings
# \donttest{
data(mtl_network)
future::plan(future::multisession(workers=1))
lixels <- lixelize_lines.mc(mtl_network,150,50)
## make sure any open connections are closed afterward
if (!inherits(future::plan(), "sequential")){
future::plan(future::sequential)
}
# }