PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ box2df_equals()

bool box2df_equals ( const BOX2DF *  a,
const BOX2DF *  b 
)

Definition at line 284 of file gserialized_gist_2d.c.

285 {
286  if ( !a && !b )
287  return true;
288  else if ( !a || !b )
289  return false;
290  else if ( box2df_is_empty(a) && box2df_is_empty(b) )
291  return true;
292  else if ( box2df_is_empty(a) || box2df_is_empty(b) )
293  return false;
294  else if ((a->xmin == b->xmin) && (a->xmax == b->xmax) && (a->ymin == b->ymin) && (a->ymax == b->ymax))
295  return true;
296  else
297  return false;
298 }
bool box2df_is_empty(const BOX2DF *a)

References box2df_is_empty().

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

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