Definition at line 58 of file lwgeom_box.c.
References BOX2D_out(), gbox_copy(), gbox_init(), PG_FUNCTION_INFO_V1(), GBOX::xmax, GBOX::xmin, GBOX::ymax, and GBOX::ymin.
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 - couldnt parse. It should look like: BOX(xmin ymin,xmax ymax)");
GBOX * gbox_copy(const GBOX *box)
Return a copy of the GBOX, based on dimensionality of flags.
void gbox_init(GBOX *gbox)
Zero out all the entries in the GBOX.