PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ pgis_asmvt_combinefn()

Datum pgis_asmvt_combinefn ( PG_FUNCTION_ARGS  )

Definition at line 261 of file lwgeom_out_mvt.c.

262 {
263 #ifndef HAVE_LIBPROTOBUF
264  elog(ERROR, "ST_AsMVT: Compiled without protobuf-c support");
265  PG_RETURN_NULL();
266 #else
267  MemoryContext aggcontext, oldcontext;
268  mvt_agg_context *ctx, *ctx1, *ctx2;
269  elog(DEBUG2, "%s called", __func__);
270  if (!AggCheckCallContext(fcinfo, &aggcontext))
271  elog(ERROR, "%s called in non-aggregate context", __func__);
272 
273  ctx1 = (mvt_agg_context*)PG_GETARG_POINTER(0);
274  ctx2 = (mvt_agg_context*)PG_GETARG_POINTER(1);
275  oldcontext = MemoryContextSwitchTo(aggcontext);
276  ctx = mvt_ctx_combine(ctx1, ctx2);
277  MemoryContextSwitchTo(oldcontext);
278  PG_RETURN_POINTER(ctx);
279 #endif
280 }
mvt_agg_context * mvt_ctx_combine(mvt_agg_context *ctx1, mvt_agg_context *ctx2)
Definition: mvt.c:1264

References mvt_ctx_combine().

Here is the call graph for this function: