PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ box2df_contains()

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

Definition at line 261 of file gserialized_gist_2d.c.

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

References box2df_is_empty().

Referenced by geom2d_brin_inclusion_add_value(), geom2d_brin_inclusion_merge(), 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: