Definition at line 56 of file lwgeom_box3d.c.
58 char *str = PG_GETARG_CSTRING(0);
64 if (strstr(str,
"BOX3D(") != str)
67 elog(ERROR,
"BOX3D parser - doesn't start with BOX3D(");
72 "BOX3D(%le %le %le ,%le %le %le)",
81 nitems = sscanf(str,
"BOX3D(%le %le ,%le %le)", &box->
xmin, &box->
ymin, &box->
xmax, &box->
ymax);
87 "BOX3D parser - couldn't parse. It should look like: BOX3D(xmin ymin zmin,xmax ymax zmax) or BOX3D(xmin ymin,xmax ymax)");
94 float tmp = box->
xmin;
100 float tmp = box->
ymin;
106 float tmp = box->
zmin;
111 PG_RETURN_POINTER(box);
#define SRID_UNKNOWN
Unknown SRID value.
References BOX3D::srid, SRID_UNKNOWN, BOX3D::xmax, BOX3D::xmin, BOX3D::ymax, BOX3D::ymin, BOX3D::zmax, and BOX3D::zmin.