PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ box2df_merge()

void box2df_merge ( BOX2DF *  b_union,
BOX2DF *  b_new 
)

Definition at line 177 of file gserialized_gist_2d.c.

178 {
179 
180  POSTGIS_DEBUGF(5, "merging %s with %s", box2df_to_string(b_union), box2df_to_string(b_new));
181  /* Adjust minimums */
182  if (b_union->xmin > b_new->xmin || isnan(b_union->xmin))
183  b_union->xmin = b_new->xmin;
184  if (b_union->ymin > b_new->ymin || isnan(b_union->ymin))
185  b_union->ymin = b_new->ymin;
186  /* Adjust maximums */
187  if (b_union->xmax < b_new->xmax || isnan(b_union->xmax))
188  b_union->xmax = b_new->xmax;
189  if (b_union->ymax < b_new->ymax || isnan(b_union->ymax))
190  b_union->ymax = b_new->ymax;
191 
192  POSTGIS_DEBUGF(5, "merge complete %s", box2df_to_string(b_union));
193  return;
194 }
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: