Class Node

  • All Implemented Interfaces:
    Serializable

    public class Node
    extends Object
    implements Serializable
    The Node class represents a data node for an RTree. This class contains references to child nodes as polygons with associated ids NOTE: findEntry is not implemented. This is used in node deletion by the RTree.
    See Also:
    Serialized Form
    • Field Detail

      • reorgTime

        public static long reorgTime
    • Method Detail

      • expandMBR

        public static LatLonRectangle2D expandMBR​(LatLonRectangle2D mbr,
                                                  LatLonPolygon2D poly)
        Adds the given poly to mbr as if mbr were a rectangle. Neither objects are modified.
        Parameters:
        mbr - the minimum bounding rectangle
        poly - a polygon to be fit inside the mbr
        Returns:
        the bounding rectangle of the union between mbr and poly as polgon2d object
      • expandMBR

        public static LatLonRectangle2D expandMBR​(LatLonRectangle2D mbr,
                                                  LatLonRectangle2D rect)
        Adds the given rect to mbr as if mbr were a rectangle. Neither objects are modified.
        Parameters:
        mbr - the minimum bounding rectangle
        rect - a rectangle to be fit inside the mbr
        Returns:
        the bounding rectangle of the union between mbr and poly as polgon2d object
      • expandMBR

        public static LatLonRectangle2D expandMBR​(LatLonRectangle2D mbr,
                                                  double[] latLons)
        Adds the given rect to mbr as if mbr were a rectangle. Neither objects are modified.
        Parameters:
        mbr - the minimum bounding rectangle
        latLons - lat/lon array with a length of 4 which contains lat/lon coords in the arrangement of LLy, LLx, URy, URx.
        Returns:
        the bounding rectangle of the union between mbr and poly as polgon2d object
      • getEntryCount

        public int getEntryCount()
      • getId

        public int getId​(int index)
      • getLevel

        public int getLevel()