Definition at line 1535 of file gserialized_gist_2d.c.

References ConsiderSplitContext::boundingBox, ConsiderSplitContext::dim, ConsiderSplitContext::entriesCount, ConsiderSplitContext::first, ConsiderSplitContext::leftUpper, LIMIT_RATIO, non_negative(), ConsiderSplitContext::overlap, ConsiderSplitContext::range, ConsiderSplitContext::ratio, and ConsiderSplitContext::rightLower.

Referenced by gserialized_gist_picksplit_2d().

1545 POSTGIS_DEBUGF(5,

"consider split: dimNum = %d, rightLower = %f, " 1546 "minLeftCount = %d, leftUpper = %f, maxLeftCount = %d ",

1547 dimNum, rightLower, minLeftCount, leftUpper, maxLeftCount);

1555 leftCount = minLeftCount;

1559 if (maxLeftCount <= context->entriesCount / 2)

1560 leftCount = maxLeftCount;

1570 ratio = ((float4) Min(leftCount, rightCount)) /

1575 bool selectthis =

false;

1589 overlap = (leftUpper - rightLower) / range;

1594 else if (context->

dim == dimNum)

1600 if (overlap < context->overlap ||

1601 (overlap == context->

overlap && ratio > context->

ratio))

1624 (range > context->

range &&

1632 context->

first =

false;

1633 context->

ratio = ratio;

1634 context->

range = range;

1638 context->

dim = dimNum;

1639 POSTGIS_DEBUG(5,

"split selected");

static float non_negative(float val)