PostGIS  2.5.0dev-r@@SVN_REVISION@@
Datum LWGEOM_addBBOX ( PG_FUNCTION_ARGS  )

Definition at line 686 of file lwgeom_inout.c.

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

Referenced by cache_bbox().

687 {
688  GSERIALIZED *geom = PG_GETARG_GSERIALIZED_P(0);
689  GSERIALIZED *result;
690  LWGEOM *lwgeom;
691 
692  lwgeom = lwgeom_from_gserialized(geom);
693  lwgeom_add_bbox(lwgeom);
694  result = geometry_serialize(lwgeom);
695 
696  PG_FREE_IF_COPY(geom, 0);
697  PG_RETURN_POINTER(result);
698 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
GSERIALIZED * geometry_serialize(LWGEOM *lwgeom)
void lwgeom_add_bbox(LWGEOM *lwgeom)
Compute a bbox if not already computed.
Definition: lwgeom.c:679

Here is the call graph for this function:

Here is the caller graph for this function: