geos_strtree: Create a GEOS STRTree

View source: R/geos-strtree.R

geos_strtreeR Documentation

Create a GEOS STRTree

Description

Create a GEOS STRTree

Usage

geos_strtree(geom, node_capacity = 10L)

geos_strtree_query(tree, geom)

geos_strtree_data(tree)

as_geos_strtree(x, ...)

## Default S3 method:
as_geos_strtree(x, ...)

## S3 method for class 'geos_strtree'
as_geos_strtree(x, ...)

## S3 method for class 'geos_geometry'
as_geos_strtree(x, ...)

Arguments

geom

A GEOS geometry vector

node_capacity

The maximum number of child nodes that a node may have. The minimum recommended capacity value is 4. If unsure, use a default node capacity of 10.

tree

A geos_strtree()

x

An object to convert to a geos_strtree()

...

Unused

Value

A geos_str_tree object


geos documentation built on June 7, 2023, 6:04 p.m.