PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ pgis_asmvt_finalfn()

Datum pgis_asmvt_finalfn ( PG_FUNCTION_ARGS  )

Definition at line 184 of file lwgeom_out_mvt.c.

185{
186#ifndef HAVE_LIBPROTOBUF
187 elog(ERROR, "ST_AsMVT: Compiled without protobuf-c support");
188 PG_RETURN_NULL();
189#else
190 mvt_agg_context *ctx;
191 bytea *buf;
192 elog(DEBUG2, "%s called", __func__);
193 if (!AggCheckCallContext(fcinfo, NULL))
194 elog(ERROR, "%s called in non-aggregate context", __func__);
195
196 if (PG_ARGISNULL(0))
197 {
198 bytea *emptybuf = palloc(VARHDRSZ);
199 SET_VARSIZE(emptybuf, VARHDRSZ);
200 PG_RETURN_BYTEA_P(emptybuf);
201 }
202
203 ctx = (mvt_agg_context *) PG_GETARG_POINTER(0);
204 buf = mvt_agg_finalfn(ctx);
205 PG_RETURN_BYTEA_P(buf);
206#endif
207}
bytea * mvt_agg_finalfn(mvt_agg_context *ctx)
Finalize aggregation.
Definition mvt.c:1296

References mvt_agg_finalfn().

Here is the call graph for this function: