PostGIS  3.4.0dev-r@@SVN_REVISION@@
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages

◆ pgis_asflatgeobuf_finalfn()

Datum pgis_asflatgeobuf_finalfn ( PG_FUNCTION_ARGS  )

Definition at line 83 of file lwgeom_out_flatgeobuf.c.

84 {
85  uint8_t *buf;
86  flatgeobuf_agg_ctx *ctx;
87  if (!AggCheckCallContext(fcinfo, NULL))
88  elog(ERROR, "pgis_asflatgeobuf_finalfn called in non-aggregate context");
89 
90  if (PG_ARGISNULL(0))
91  PG_RETURN_NULL();
92 
93  ctx = (flatgeobuf_agg_ctx *) PG_GETARG_POINTER(0);
94  buf = flatgeobuf_agg_finalfn(ctx);
95  PG_RETURN_BYTEA_P(buf);
96 }
uint8_t * flatgeobuf_agg_finalfn(struct flatgeobuf_agg_ctx *ctx)
Finalize aggregation.
Definition: flatgeobuf.c:558

References flatgeobuf_agg_finalfn().

Here is the call graph for this function: