Definition at line 1430 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().

1440 POSTGIS_DEBUGF(5,

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

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

1450 leftCount = minLeftCount;

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

1455 leftCount = maxLeftCount;

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

1470 bool selectthis =

false;

1484 overlap = (leftUpper - rightLower) / range;

1489 else if (context->

dim == dimNum)

1495 if (overlap < context->overlap ||

1496 (overlap == context->

overlap && ratio > context->

ratio))

1519 (range > context->

range &&

1527 context->

first =

false;

1528 context->

ratio = ratio;

1529 context->

range = range;

1533 context->

dim = dimNum;

1534 POSTGIS_DEBUG(5,

"split selected");

static float non_negative(float val)