Definition at line 456 of file lwgeom_box3d.c.
461 BOX3D *result = NULL;
474 result = palloc(
sizeof(
BOX3D));
475 memcpy(result, box,
sizeof(
BOX3D));
476 PG_RETURN_POINTER(result);
491 PG_FREE_IF_COPY(geom, 1);
495 result = palloc(
sizeof(
BOX3D));
496 memcpy(result, box,
sizeof(
BOX3D));
497 PG_RETURN_POINTER(result);
503 PG_FREE_IF_COPY(geom, 1);
506 PG_RETURN_POINTER(result);
509 result = palloc(
sizeof(
BOX3D));
518 PG_FREE_IF_COPY(geom, 1);
519 PG_RETURN_POINTER(result);
BOX3D * box3d_from_gbox(const GBOX *gbox)
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
int lwgeom_calculate_gbox(const LWGEOM *lwgeom, GBOX *gbox)
Calculate bounding box of a geometry, automatically taking into account whether it is cartesian or ge...
References box3d_from_gbox(), LW_FAILURE, lwgeom_calculate_gbox(), lwgeom_free(), lwgeom_from_gserialized(), BOX3D::srid, LWGEOM::srid, BOX3D::xmax, GBOX::xmax, BOX3D::xmin, GBOX::xmin, BOX3D::ymax, GBOX::ymax, BOX3D::ymin, GBOX::ymin, BOX3D::zmax, GBOX::zmax, BOX3D::zmin, and GBOX::zmin.