PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ LWGEOM_addBBOX()

Datum LWGEOM_addBBOX ( PG_FUNCTION_ARGS  )

Definition at line 620 of file lwgeom_inout.c.

621{
622 GSERIALIZED *geom = PG_GETARG_GSERIALIZED_P(0);
624 LWGEOM *lwgeom;
625
626 lwgeom = lwgeom_from_gserialized(geom);
627 lwgeom_add_bbox(lwgeom);
628 result = geometry_serialize(lwgeom);
629
630 PG_FREE_IF_COPY(geom, 0);
631 PG_RETURN_POINTER(result);
632}
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition cu_print.c:267
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
Definition lwgeom.c:723

References lwgeom_add_bbox(), lwgeom_from_gserialized(), and result.

Referenced by cache_bbox().

Here is the call graph for this function:
Here is the caller graph for this function: