PostGIS  2.5.0dev-r@@SVN_REVISION@@
static bool box2df_equals ( const BOX2DF *  a,
const BOX2DF *  b 
)
static

Definition at line 400 of file gserialized_gist_2d.c.

References box2df_is_empty().

Referenced by gserialized_gist_consistent_leaf_2d(), gserialized_gist_same_2d(), and gserialized_same_2d().

401 {
402  if ( !a && !b )
403  return true;
404  else if ( !a || !b )
405  return false;
406  else if ( box2df_is_empty(a) && box2df_is_empty(b) )
407  return true;
408  else if ( box2df_is_empty(a) || box2df_is_empty(b) )
409  return false;
410  else if ((a->xmin == b->xmin) && (a->xmax == b->xmax) && (a->ymin == b->ymin) && (a->ymax == b->ymax))
411  return true;
412  else
413  return false;
414 }
bool box2df_is_empty(const BOX2DF *a)

Here is the call graph for this function:

Here is the caller graph for this function: