PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ box2df_merge()

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

Definition at line 160 of file gserialized_gist_2d.c.

References box2df_to_string(), FALSE, and TRUE.

Referenced by gserialized_gist_union_2d().

161 {
162 
163  POSTGIS_DEBUGF(5, "merging %s with %s", box2df_to_string(b_union), box2df_to_string(b_new));
164  /* Adjust minimums */
165  if (b_union->xmin > b_new->xmin || isnan(b_union->xmin))
166  b_union->xmin = b_new->xmin;
167  if (b_union->ymin > b_new->ymin || isnan(b_union->ymin))
168  b_union->ymin = b_new->ymin;
169  /* Adjust maximums */
170  if (b_union->xmax < b_new->xmax || isnan(b_union->xmax))
171  b_union->xmax = b_new->xmax;
172  if (b_union->ymax < b_new->ymax || isnan(b_union->ymax))
173  b_union->ymax = b_new->ymax;
174 
175  POSTGIS_DEBUGF(5, "merge complete %s", box2df_to_string(b_union));
176  return;
177 }
static char * box2df_to_string(const BOX2DF *a)
Here is the call graph for this function:
Here is the caller graph for this function: