PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ box2df_merge()

void box2df_merge ( BOX2DF *  b_union,
BOX2DF *  b_new 
)

Definition at line 185 of file gserialized_gist_2d.c.

186 {
187 
188  POSTGIS_DEBUGF(5, "merging %s with %s", box2df_to_string(b_union), box2df_to_string(b_new));
189  /* Adjust minimums */
190  if (b_union->xmin > b_new->xmin || isnan(b_union->xmin))
191  b_union->xmin = b_new->xmin;
192  if (b_union->ymin > b_new->ymin || isnan(b_union->ymin))
193  b_union->ymin = b_new->ymin;
194  /* Adjust maximums */
195  if (b_union->xmax < b_new->xmax || isnan(b_union->xmax))
196  b_union->xmax = b_new->xmax;
197  if (b_union->ymax < b_new->ymax || isnan(b_union->ymax))
198  b_union->ymax = b_new->ymax;
199 
200  POSTGIS_DEBUGF(5, "merge complete %s", box2df_to_string(b_union));
201  return;
202 }
static char * box2df_to_string(const BOX2DF *a)

References box2df_to_string().

Referenced by gserialized_gist_union_2d(), and spatial_index_read_extent().

Here is the call graph for this function:
Here is the caller graph for this function: