PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ LWGEOM_addBBOX()

Datum LWGEOM_addBBOX ( PG_FUNCTION_ARGS  )

Definition at line 618 of file lwgeom_inout.c.

619 {
620  GSERIALIZED *geom = PG_GETARG_GSERIALIZED_P(0);
622  LWGEOM *lwgeom;
623 
624  lwgeom = lwgeom_from_gserialized(geom);
625  lwgeom_add_bbox(lwgeom);
626  result = geometry_serialize(lwgeom);
627 
628  PG_FREE_IF_COPY(geom, 0);
629  PG_RETURN_POINTER(result);
630 }
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition: cu_print.c:262
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:695

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: