Definition at line 55 of file lwgeom_box3d.c.
57 char *
str = PG_GETARG_CSTRING(0);
63 if (strstr(
str,
"BOX3D(") !=
str)
66 elog(ERROR,
"BOX3D parser - doesn't start with BOX3D(");
71 "BOX3D(%le %le %le ,%le %le %le)",
80 nitems = sscanf(
str,
"BOX3D(%le %le ,%le %le)", &box->
xmin, &box->
ymin, &box->
xmax, &box->
ymax);
86 "BOX3D parser - couldn't parse. It should look like: BOX3D(xmin ymin zmin,xmax ymax zmax) or BOX3D(xmin ymin,xmax ymax)");
93 float tmp = box->
xmin;
99 float tmp = box->
ymin;
105 float tmp = box->
zmin;
110 PG_RETURN_POINTER(box);
#define SRID_UNKNOWN
Unknown SRID value.
References BOX3D::srid, SRID_UNKNOWN, str, BOX3D::xmax, BOX3D::xmin, BOX3D::ymax, BOX3D::ymin, BOX3D::zmax, and BOX3D::zmin.