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

Definition at line 344 of file lwgeom_box.c.

References gbox_expand(), and result.

345 {
346  GBOX *box = (GBOX *)PG_GETARG_POINTER(0);
347  double d = PG_GETARG_FLOAT8(1);
348  GBOX *result = (GBOX *)palloc(sizeof(GBOX));
349 
350  memcpy(result, box, sizeof(GBOX));
351  gbox_expand(result, d);
352 
353  PG_RETURN_POINTER(result);
354 }
void gbox_expand(GBOX *g, double d)
Move the box minimums down and the maximums up by the distance provided.
Definition: g_box.c:91
char ** result
Definition: liblwgeom.h:218

Here is the call graph for this function: