PostGIS  2.2.7dev-r@@SVN_REVISION@@
Datum BOX2D_expand ( PG_FUNCTION_ARGS  )

Definition at line 364 of file lwgeom_box.c.

References gbox_expand().

365 {
366  GBOX *box = (GBOX *)PG_GETARG_POINTER(0);
367  double d = PG_GETARG_FLOAT8(1);
368  GBOX *result = (GBOX *)palloc(sizeof(GBOX));
369 
370  memcpy(result, box, sizeof(GBOX));
371  gbox_expand(result, d);
372 
373  PG_RETURN_POINTER(result);
374 }
void gbox_expand(GBOX *g, double d)
Move the box minimums down and the maximums up by the distance provided.
Definition: g_box.c:93

Here is the call graph for this function: