Definition at line 72 of file lwgeom_box3d.c.
References BOX3D_out(), PG_FUNCTION_INFO_V1(), BOX3D::srid, SRID_UNKNOWN, BOX3D::xmax, BOX3D::xmin, BOX3D::ymax, BOX3D::ymin, BOX3D::zmax, and BOX3D::zmin.
74 char *str = PG_GETARG_CSTRING(0);
83 if (strstr(str,
"BOX3D(") != str )
86 elog(ERROR,
"BOX3D parser - doesn't start with BOX3D(");
90 nitems = sscanf(str,
"BOX3D(%le %le %le ,%le %le %le)",
95 nitems = sscanf(str,
"BOX3D(%le %le ,%le %le)",
100 elog(ERROR,
"BOX3D parser - couldnt parse. It should look like: BOX3D(xmin ymin zmin,xmax ymax zmax) or BOX3D(xmin ymin,xmax ymax)");
107 float tmp = box->
xmin;
113 float tmp = box->
ymin;
119 float tmp = box->
zmin;
124 PG_RETURN_POINTER(box);
#define SRID_UNKNOWN
Unknown SRID value.