Definition at line 58 of file lwgeom_box.c.
60 char *str = PG_GETARG_CSTRING(0);
68 for(i = 0; str[i]; i++) {
69 str[i] = tolower(str[i]);
72 nitems = sscanf(str,
"box(%lf %lf,%lf %lf)", &box.
xmin, &box.
ymin, &box.
xmax, &box.
ymax);
75 elog(ERROR,
"box2d parser - couldn't parse. It should look like: BOX(xmin ymin,xmax ymax)");
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(), GBOX::xmax, GBOX::xmin, GBOX::ymax, and GBOX::ymin.