PostGIS  2.1.10dev-r@@SVN_REVISION@@
GBOX* gbox_new ( uint8_t  flags)

Create a new gbox with the dimensionality indicated by the flags.

Caller is responsible for freeing.

Definition at line 26 of file g_box.c.

References GBOX::flags, gbox_init(), and lwalloc().

Referenced by BOX2D_construct(), gbox_from_string(), lwgeom_add_bbox(), lwgeom_add_bbox_deep(), and parse_geohash().

27 {
28  GBOX *g = (GBOX*)lwalloc(sizeof(GBOX));
29  gbox_init(g);
30  g->flags = flags;
31  return g;
32 }
void gbox_init(GBOX *gbox)
Zero out all the entries in the GBOX.
Definition: g_box.c:34
uint8_t flags
Definition: liblwgeom.h:247
void * lwalloc(size_t size)
Definition: lwutil.c:175

Here is the call graph for this function:

Here is the caller graph for this function: