Creates an interior node given the children.
Definition at line 148 of file lwgeom_rtree.c.
References rtree_node::interval, rtree_node::leftNode, lwalloc(), rtree_node::rightNode, RTreeMergeIntervals(), and rtree_node::segment.
Referenced by RTreeCreate().
152 POSTGIS_DEBUGF(2,
"RTreeCreateInteriorNode called for children %p, %p", left, right);
160 POSTGIS_DEBUGF(3,
"RTreeCreateInteriorNode returning %p", parent);
The following struct and methods are used for a 1D RTree implementation, described at: http://lin-ear...
struct rtree_node * leftNode
RTREE_INTERVAL * interval
static RTREE_INTERVAL * RTreeMergeIntervals(RTREE_INTERVAL *inter1, RTREE_INTERVAL *inter2)
Creates an interval with the total extents of the two given intervals.
struct rtree_node * rightNode
void * lwalloc(size_t size)