PostGIS  2.1.10dev-r@@SVN_REVISION@@
Datum BOX2D_contain ( PG_FUNCTION_ARGS  )

Definition at line 288 of file lwgeom_box.c.

References GBOX::xmax, GBOX::xmin, GBOX::ymax, and GBOX::ymin.

289 {
290  GBOX *box1 = (GBOX *) PG_GETARG_POINTER(0);
291  GBOX *box2 = (GBOX *) PG_GETARG_POINTER(1);
292 
293  PG_RETURN_BOOL(FPge(box1->xmax, box2->xmax) &&
294  FPle(box1->xmin, box2->xmin) &&
295  FPge(box1->ymax, box2->ymax) &&
296  FPle(box1->ymin, box2->ymin));
297 
298 }
double xmax
Definition: liblwgeom.h:249
double ymin
Definition: liblwgeom.h:250
double xmin
Definition: liblwgeom.h:248
double ymax
Definition: liblwgeom.h:251