Definition at line 571 of file lwgeom_box3d.c.
References error_if_srid_mismatch(), getPoint3dz_p(), lwgeom_from_gserialized(), POINTTYPE, BOX3D::srid, LWGEOM::srid, LWPOINT::srid, LWGEOM::type, POINT3DZ::x, BOX3D::xmax, BOX3D::xmin, POINT3DZ::y, BOX3D::ymax, BOX3D::ymin, POINT3DZ::z, BOX3D::zmax, and BOX3D::zmin.
Referenced by BOX3D_combine_BOX3D().
576 LWGEOM *minpoint, *maxpoint;
585 elog(ERROR,
"BOX3D_construct: args must be points");
594 result->
xmax = maxp.
x;
595 result->
ymax = maxp.
y;
596 result->
zmax = maxp.
z;
598 result->
xmin = minp.
x;
599 result->
ymin = minp.
y;
600 result->
zmin = minp.
z;
604 PG_RETURN_POINTER(result);
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void error_if_srid_mismatch(int srid1, int srid2)
int getPoint3dz_p(const POINTARRAY *pa, int n, POINT3DZ *point)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.