Definition at line 57 of file lwgeom_box.c.
58{
59 char *
str = PG_GETARG_CSTRING(0);
60 int nitems;
61 double tmp;
63 int i;
64
66
67 for(i = 0;
str[i]; i++) {
69 }
70
72 if (nitems != 4)
73 {
74 elog(ERROR,"box2d parser - couldn't parse. It should look like: BOX(xmin ymin,xmax ymax)");
75 PG_RETURN_NULL();
76 }
77
79 {
83 }
85 {
89 }
91}
void gbox_init(GBOX *gbox)
Zero out all the entries in the GBOX.
GBOX * gbox_copy(const GBOX *box)
Return a copy of the GBOX, based on dimensionality of flags.
References gbox_copy(), gbox_init(), str, GBOX::xmax, GBOX::xmin, GBOX::ymax, and GBOX::ymin.