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

◆ box2df_from_gbox_p()

static int box2df_from_gbox_p ( GBOX box,
BOX2DF *  a 
)
inlinestatic

Definition at line 201 of file gserialized_gist_2d.c.

202{
203 a->xmin = next_float_down(box->xmin);
204 a->xmax = next_float_up(box->xmax);
205 a->ymin = next_float_down(box->ymin);
206 a->ymax = next_float_up(box->ymax);
207 return LW_SUCCESS;
208}
#define LW_SUCCESS
Definition liblwgeom.h:97
float next_float_up(double d)
Definition lwgeom_api.c:74
float next_float_down(double d)
Definition lwgeom_api.c:53
double ymax
Definition liblwgeom.h:357
double xmax
Definition liblwgeom.h:355
double ymin
Definition liblwgeom.h:356
double xmin
Definition liblwgeom.h:354

References LW_SUCCESS, next_float_down(), next_float_up(), GBOX::xmax, GBOX::xmin, GBOX::ymax, and GBOX::ymin.

Referenced by gserialized_datum_get_box2df_p().

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