PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ BOX2D_expand()

Datum BOX2D_expand ( PG_FUNCTION_ARGS  )

Definition at line 364 of file lwgeom_box.c.

References BOX2D_to_BOX3D(), gbox_expand(), and PG_FUNCTION_INFO_V1().

Referenced by BOX2D_union().

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:
Here is the caller graph for this function: