View source: R/spatial_indexing_sf.R
build_quadtree | R Documentation |
Generate a quadtree object from package SearchTrees, useful to speed up spatial requesting (INTERNAL).
build_quadtree(data)
data |
a feature collection of linestrings or a feature collection of points |
a spatial_index object (pointer to a c++ instance)
data(mtl_network)
tree <- build_quadtree(mtl_network)
buff <- sf::st_buffer(mtl_network[55,], 50)
selection <- spatial_request(buff, tree, mtl_network)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.