Definition at line 551 of file lwgeom_box3d.c.
556 LWGEOM *minpoint, *maxpoint;
564 elog(ERROR,
"BOX3D_construct: args must be points");
569 elog(ERROR,
"BOX3D_construct: args can not be empty points");
578 result->
xmax = maxp.
x;
579 result->
ymax = maxp.
y;
580 result->
zmax = maxp.
z;
582 result->
xmin = minp.
x;
583 result->
ymin = minp.
y;
584 result->
zmin = minp.
z;
588 PG_RETURN_POINTER(result);
void gserialized_error_if_srid_mismatch(const GSERIALIZED *g1, const GSERIALIZED *g2, const char *funcname)
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
int getPoint3dz_p(const POINTARRAY *pa, uint32_t n, POINT3DZ *point)
static int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
References getPoint3dz_p(), gserialized_error_if_srid_mismatch(), lwgeom_from_gserialized(), lwgeom_is_empty(), POINTTYPE, BOX3D::srid, LWGEOM::srid, LWGEOM::type, POINT3DZ::x, BOX3D::xmax, BOX3D::xmin, POINT3DZ::y, BOX3D::ymax, BOX3D::ymin, POINT3DZ::z, BOX3D::zmax, and BOX3D::zmin.