Documentation

spaceindex

spaceindex is a tool for building r-trees.

Tree

Another Tree

Build Status codecov


Installation

Add this to your Cargo.toml:

[dependencies]

spaceindex = "0.2.1"

Basic Usage

To create a new RTree, use:

use spaceindex::rtree::RTree;

// Creates a 2-dimensional RTree
let mut rtree = RTree::new(2);

// Insert a region into the tree
rtree.insert(((0.0, 0.0), (3.0, 3.0)), 0).expect("failed to insert");

License

Licensed under either of