PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ box2df_merge()

static void box2df_merge ( BOX2DF *  b_union,
BOX2DF *  b_new 
)
static

Definition at line 135 of file gserialized_gist_2d.c.

References box2df_to_string(), FALSE, and TRUE.

Referenced by gserialized_gist_union_2d().

136 {
137 
138  POSTGIS_DEBUGF(5, "merging %s with %s", box2df_to_string(b_union), box2df_to_string(b_new));
139  /* Adjust minimums */
140  if (b_union->xmin > b_new->xmin || isnan(b_union->xmin))
141  b_union->xmin = b_new->xmin;
142  if (b_union->ymin > b_new->ymin || isnan(b_union->ymin))
143  b_union->ymin = b_new->ymin;
144  /* Adjust maximums */
145  if (b_union->xmax < b_new->xmax || isnan(b_union->xmax))
146  b_union->xmax = b_new->xmax;
147  if (b_union->ymax < b_new->ymax || isnan(b_union->ymax))
148  b_union->ymax = b_new->ymax;
149 
150  POSTGIS_DEBUGF(5, "merge complete %s", box2df_to_string(b_union));
151  return;
152 }
static char * box2df_to_string(const BOX2DF *a)
Here is the call graph for this function:
Here is the caller graph for this function: