PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ pgis_asmvt_combinefn()

Datum pgis_asmvt_combinefn ( PG_FUNCTION_ARGS  )

Definition at line 248 of file lwgeom_out_mvt.c.

249 {
250 #ifndef HAVE_LIBPROTOBUF
251  elog(ERROR, "Missing libprotobuf-c");
252  PG_RETURN_NULL();
253 #else
254  MemoryContext aggcontext, oldcontext;
255  mvt_agg_context *ctx, *ctx1, *ctx2;
256  elog(DEBUG2, "%s called", __func__);
257  if (!AggCheckCallContext(fcinfo, &aggcontext))
258  elog(ERROR, "%s called in non-aggregate context", __func__);
259 
260  ctx1 = (mvt_agg_context*)PG_GETARG_POINTER(0);
261  ctx2 = (mvt_agg_context*)PG_GETARG_POINTER(1);
262  oldcontext = MemoryContextSwitchTo(aggcontext);
263  ctx = mvt_ctx_combine(ctx1, ctx2);
264  MemoryContextSwitchTo(oldcontext);
265  PG_RETURN_POINTER(ctx);
266 #endif
267 }
mvt_agg_context * mvt_ctx_combine(mvt_agg_context *ctx1, mvt_agg_context *ctx2)
Definition: mvt.c:1548

References mvt_ctx_combine().

Here is the call graph for this function: