index.Quadtree()

class index.Quadtree()

Create a Quadtree Spatial Index.

Properties

size

Int The number of items in the spatial index.

Methods

Quadtree.query()
Arguments
Returns

Array()

Query the spatial index by Bounds.

Quadtree.queryAll()
Returns

Array()

Get all item in the spatial index.

Quadtree.insert()
Arguments
  • boundsgeom.Bounds() The Bounds.

  • itemObject() The value.

Returns

boolean() Whether an item was removed or not

Remove an item from the spatial index

Quadtree.remove()
Arguments
  • boundsgeom.Bounds() The Bounds.

  • itemObject() The value.

Returns

boolean() Whether an item was removed or not

Remove an item from the spatial index

Get all item in the spatial index.