Class LooseQuadTree<T>

java.lang.Object
org.aksw.commons.collections.quadtree.LooseQuadTree<T>
Record Components:
bounds - Maximum bounds (e.g. (-180, -90) - (180, 90) for spanning the all wgs84 coordinates)
maxDepth - Maximum depth of the tree
k - The factor controlling the additional size of nodes in contrast to classic QuadTrees.

public class LooseQuadTree<T> extends Object
A LooseQuadTree data structure.
  • Field Details

  • Constructor Details

    • LooseQuadTree

      public LooseQuadTree(org.locationtech.jts.geom.Envelope bounds, int maxDepth, float k)
  • Method Details

    • getRootNode

      public QuadTreeNode<T> getRootNode()
    • acquireNodes

      public Collection<QuadTreeNode<T>> acquireNodes(org.locationtech.jts.geom.Envelope bounds, int depth)
      Retrieve the node that completely encompasses the given bounds
      Parameters:
      bounds -
    • query

      public List<?> query(org.locationtech.jts.geom.Envelope bounds, int depth)