PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ box2df_contains()

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

Definition at line 259 of file gserialized_gist_2d.c.

260 {
261  if ( !a || !b )
262  return false;
263 
264  /* All things can contain EMPTY (except EMPTY) */
265  if ( box2df_is_empty(b) && ! box2df_is_empty(a) )
266  return true;
267 
268  if ( (a->xmin > b->xmin) || (a->xmax < b->xmax) ||
269  (a->ymin > b->ymin) || (a->ymax < b->ymax) )
270  {
271  return false;
272  }
273 
274  return true;
275 }
bool box2df_is_empty(const BOX2DF *a)

References box2df_is_empty().

Referenced by geom2d_brin_inclusion_add_value(), gserialized_contains_2d(), gserialized_contains_box2df_box2df_2d(), gserialized_contains_box2df_geom_2d(), gserialized_gist_consistent_internal_2d(), gserialized_gist_consistent_leaf_2d(), and gserialized_spgist_leaf_consistent_2d().

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