PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ box2df_merge()

void box2df_merge ( BOX2DF *  b_union,
BOX2DF *  b_new 
)

Definition at line 166 of file gserialized_gist_2d.c.

167 {
168 
169  POSTGIS_DEBUGF(5, "merging %s with %s", box2df_to_string(b_union), box2df_to_string(b_new));
170  /* Adjust minimums */
171  if (b_union->xmin > b_new->xmin || isnan(b_union->xmin))
172  b_union->xmin = b_new->xmin;
173  if (b_union->ymin > b_new->ymin || isnan(b_union->ymin))
174  b_union->ymin = b_new->ymin;
175  /* Adjust maximums */
176  if (b_union->xmax < b_new->xmax || isnan(b_union->xmax))
177  b_union->xmax = b_new->xmax;
178  if (b_union->ymax < b_new->ymax || isnan(b_union->ymax))
179  b_union->ymax = b_new->ymax;
180 
181  POSTGIS_DEBUGF(5, "merge complete %s", box2df_to_string(b_union));
182  return;
183 }
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: