PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ LWGEOM_addBBOX()

Datum LWGEOM_addBBOX ( PG_FUNCTION_ARGS  )

Definition at line 689 of file lwgeom_inout.c.

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

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

Referenced by cache_bbox().

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