Definition at line 56 of file lwgeom_box.c.
57{
58 char *
str = PG_GETARG_CSTRING(0);
59 int nitems;
60 double tmp;
62 int i;
63
65
66 for(i = 0;
str[i]; i++) {
68 }
69
71 if (nitems != 4)
72 {
73 elog(ERROR,"box2d parser - couldn't parse. It should look like: BOX(xmin ymin,xmax ymax)");
74 PG_RETURN_NULL();
75 }
76
78 {
82 }
84 {
88 }
90}
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.