PostGIS  2.2.7dev-r@@SVN_REVISION@@
static float box_penalty ( BOX2DF *  original,
BOX2DF *  new 
)
static

Definition at line 1543 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_picksplit_2d().

1544 {
1545  float union_width,
1546  union_height;
1547 
1548  union_width = Max(original->xmax, new->xmax) -
1549  Min(original->xmin, new->xmin);
1550  union_height = Max(original->ymax, new->ymax) -
1551  Min(original->ymin, new->ymin);
1552  return union_width * union_height - (original->xmax - original->xmin) *
1553  (original->ymax - original->ymin);
1554 }

Here is the caller graph for this function: