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

◆ box2df_within()

static bool box2df_within ( const BOX2DF *  a,
const BOX2DF *  b 
)
static

Definition at line 279 of file gserialized_gist_2d.c.

280{
281 if ( !a || !b )
282 return false;
283
284 /* EMPTY is within all other things (except EMPTY) */
285 if ( box2df_is_empty(a) && ! box2df_is_empty(b) )
286 return true;
287
288 if ( (a->xmin < b->xmin) || (a->xmax > b->xmax) ||
289 (a->ymin < b->ymin) || (a->ymax > b->ymax) )
290 {
291 return false;
292 }
293
294 return true;
295}
bool box2df_is_empty(const BOX2DF *a)

References box2df_is_empty().

Referenced by gserialized_gist_consistent_leaf_2d(), gserialized_within_2d(), gserialized_within_box2df_box2df_2d(), and gserialized_within_box2df_geom_2d().

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