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

Definition at line 665 of file lwgeom_inout.c.

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

Referenced by cache_bbox().

666 {
667  GSERIALIZED *geom = PG_GETARG_GSERIALIZED_P(0);
668  GSERIALIZED *result;
669  LWGEOM *lwgeom;
670 
671  lwgeom = lwgeom_from_gserialized(geom);
672  lwgeom_add_bbox(lwgeom);
673  result = geometry_serialize(lwgeom);
674 
675  PG_FREE_IF_COPY(geom, 0);
676  PG_RETURN_POINTER(result);
677 }
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:599

Here is the call graph for this function:

Here is the caller graph for this function: