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

Definition at line 331 of file lwgeom_box.c.

References gbox_union(), and lwalloc().

332 {
333  GBOX *a = (GBOX*) PG_GETARG_POINTER(0);
334  GBOX *b = (GBOX*) PG_GETARG_POINTER(1);
335  GBOX *n;
336 
337  n = (GBOX *) lwalloc(sizeof(GBOX));
338  if ( ! gbox_union(a,b,n) ) PG_RETURN_NULL();
339  PG_RETURN_POINTER(n);
340 }
int gbox_union(const GBOX *g1, const GBOX *g2, GBOX *gout)
Update the output GBOX to be large enough to include both inputs.
Definition: g_box.c:109
void * lwalloc(size_t size)
Definition: lwutil.c:175

Here is the call graph for this function: