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

◆ box2df_contains()

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

Definition at line 248 of file gserialized_gist_2d.c.

249{
250 if ( !a || !b )
251 return false;
252
253 /* All things can contain EMPTY (except EMPTY) */
254 if ( box2df_is_empty(b) && ! box2df_is_empty(a) )
255 return true;
256
257 if ( (a->xmin > b->xmin) || (a->xmax < b->xmax) ||
258 (a->ymin > b->ymin) || (a->ymax < b->ymax) )
259 {
260 return false;
261 }
262
263 return true;
264}
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: