PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void box2df_merge ( BOX2DF *  b_union,
BOX2DF *  b_new 
)
static

Definition at line 138 of file gserialized_gist_2d.c.

Referenced by gserialized_gist_union_2d().

139 {
140 
141  POSTGIS_DEBUGF(5, "merging %s with %s", box2df_to_string(b_union), box2df_to_string(b_new));
142  /* Adjust minimums */
143  if (b_union->xmin > b_new->xmin || isnan(b_union->xmin))
144  b_union->xmin = b_new->xmin;
145  if (b_union->ymin > b_new->ymin || isnan(b_union->ymin))
146  b_union->ymin = b_new->ymin;
147  /* Adjust maximums */
148  if (b_union->xmax < b_new->xmax || isnan(b_union->xmax))
149  b_union->xmax = b_new->xmax;
150  if (b_union->ymax < b_new->ymax || isnan(b_union->ymax))
151  b_union->ymax = b_new->ymax;
152 
153  POSTGIS_DEBUGF(5, "merge complete %s", box2df_to_string(b_union));
154  return;
155 }

Here is the caller graph for this function: