build_quadtree: Build a quadtree

View source: R/spatial_indexing_sf.R

build_quadtreeR Documentation

Build a quadtree

Description

Generate a quadtree object from package SearchTrees, useful to speed up spatial requesting (INTERNAL).

Usage

build_quadtree(data)

Arguments

data

a feature collection of linestrings or a feature collection of points

Value

a spatial_index object (pointer to a c++ instance)

Examples

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

JeremyGelb/spNetwork documentation built on May 24, 2024, 7:23 p.m.