Class QuadTree<T extends SpatialIndex2Capable>

  • All Implemented Interfaces:
    SpatialIndex2D<T>, AutoCloseable, Iterable<T>

    public final class QuadTree<T extends SpatialIndex2Capable>
    extends Object
    implements SpatialIndex2D<T>
    This is the preferred SpatialIndex2D implementation to index bigger amounts of spatial data and query them efficiently. You can consider using GridIndex2D instead for small grids with one-dimensional objects only. A quadtree is a tree data structure in which each internal node has exactly four children. Quadtrees are the two-dimensional analog of octrees and are most often used to partition a two-dimensional space by recursively subdividing it into four quadrants or regions.