View source: R/spatial_indexing_sf.R
spatial_request | R Documentation |
Use a quadtree index to perform spatial request.
spatial_request(geometry, tree, data)
geometry |
sf like object (feature collection or simple geometry) |
tree |
a tree object from package SearchTrees |
data |
the original data used to build the tree object |
a subset of data, intersecting geometry
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.