PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ box_penalty()

static float box_penalty ( BOX2DF *  original,
BOX2DF *  new 
)
static

Definition at line 1796 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_picksplit_2d().

1797 {
1798  float union_width,
1799  union_height;
1800 
1801  union_width = Max(original->xmax, new->xmax) -
1802  Min(original->xmin, new->xmin);
1803  union_height = Max(original->ymax, new->ymax) -
1804  Min(original->ymin, new->ymin);
1805  return union_width * union_height - (original->xmax - original->xmin) *
1806  (original->ymax - original->ymin);
1807 }
Here is the caller graph for this function: