spatial_request: Spatial request

View source: R/spatial_indexing_sf.R

spatial_requestR Documentation

Spatial request

Description

Use a quadtree index to perform spatial request.

Usage

spatial_request(geometry, tree, data)

Arguments

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

Value

a subset of data, intersecting geometry

Examples

data(mtl_network)
tree <- build_quadtree(mtl_network)
buff <- sf::st_buffer(mtl_network[55,], 50)
selection <- spatial_request(buff, tree, mtl_network)

spNetwork documentation built on June 22, 2024, 9:40 a.m.