Class KDB

    • Constructor Detail

      • KDB

        public KDB​(int maxItemsPerNode,
                   int maxLevels,
                   org.locationtech.jts.geom.Envelope extent)
    • Method Detail

      • getItemCount

        public int getItemCount()
      • isLeaf

        public boolean isLeaf()
      • getLeafId

        public int getLeafId()
      • getExtent

        public org.locationtech.jts.geom.Envelope getExtent()
      • insert

        public void insert​(org.locationtech.jts.geom.Envelope envelope)
      • dropElements

        public void dropElements()
      • findLeafNodes

        public List<KDB> findLeafNodes​(org.locationtech.jts.geom.Envelope envelope)
      • traverse

        public void traverse​(KDB.Visitor visitor)
        Traverses the tree top-down breadth-first and calls the visitor for each node. Stops traversing if a call to Visitor.visit returns false.
      • assignLeafIds

        public void assignLeafIds()