Interface: AbstractNode

jsts.index.strtree.AbstractNode

Constructs an AbstractNode at the given level in the tree
Source:

Extends

  • Boundable

Methods

addChildBoundable(childBoundable)

Adds either an AbstractNode, or if this is a leaf node, a data object (wrapped in an ItemBoundable)
Parameters:
Name Type Description
childBoundable jsts.index.strtree.Boundable
Source:

computeBounds()

Returns a representation of space that encloses this Boundable, preferably not much bigger than this Boundable's boundary yet fast to test for intersection with the bounds of other Boundables. The class of object returned depends on the subclass of AbstractSTRtree.
Source:
See:
  • AbstractSTRtree.IntersectsOp
Returns:
an Envelope (for STRtrees), an Interval (for SIRtrees), or other object (for other subclasses of AbstractSTRtree).

getChildBoundables() → {Array}

Returns either child AbstractNodes, or if this is a leaf node, real data (wrapped in ItemBoundables).
Source:
Returns:
Type
Array

getLevel() → {number}

Returns 0 if this node is a leaf, 1 if a parent of a leaf, and so on; the root node will have the highest level
Source:
Returns:
Type
number