Definition at line 551 of file lwgeom_box3d.c.
556 LWGEOM *minpoint, *maxpoint;
564 elog(ERROR,
"BOX3D_construct: args must be points");
573 result->
xmax = maxp.
x;
574 result->
ymax = maxp.
y;
575 result->
zmax = maxp.
z;
577 result->
xmin = minp.
x;
578 result->
ymin = minp.
y;
579 result->
zmin = minp.
z;
583 PG_RETURN_POINTER(result);
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)
void error_if_srid_mismatch(int srid1, int srid2)
References error_if_srid_mismatch(), getPoint3dz_p(), lwgeom_from_gserialized(), 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.