1694{
1695 GSERIALIZED *pg_lwgeom = PG_GETARG_GSERIALIZED_P(0);
1699 BOX *out = NULL;
1700
1701
1703
1704
1706
1707
1709 PG_FREE_IF_COPY(pg_lwgeom, 0);
1710
1711
1713 PG_RETURN_NULL();
1714
1716 out->low.x = gbox.
xmin;
1717 out->low.y = gbox.
ymin;
1718 out->high.x = gbox.
xmax;
1719 out->high.y = gbox.
ymax;
1720 PG_RETURN_POINTER(out);
1721}
char result[OUT_DOUBLE_BUFFER_SIZE]
void gbox_init(GBOX *gbox)
Zero out all the entries in the GBOX.
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void * lwalloc(size_t size)
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...