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

◆ pgis_asmvt_deserialfn()

Datum pgis_asmvt_deserialfn ( PG_FUNCTION_ARGS  )

Definition at line 227 of file lwgeom_out_mvt.c.

228{
229#ifndef HAVE_LIBPROTOBUF
230 elog(ERROR, "Missing libprotobuf-c");
231 PG_RETURN_NULL();
232#else
233 MemoryContext aggcontext, oldcontext;
234 mvt_agg_context *ctx;
235 elog(DEBUG2, "%s called", __func__);
236 if (!AggCheckCallContext(fcinfo, &aggcontext))
237 elog(ERROR, "%s called in non-aggregate context", __func__);
238
239 oldcontext = MemoryContextSwitchTo(aggcontext);
240 ctx = mvt_ctx_deserialize(PG_GETARG_BYTEA_P(0));
241 MemoryContextSwitchTo(oldcontext);
242
243 PG_RETURN_POINTER(ctx);
244#endif
245}
mvt_agg_context * mvt_ctx_deserialize(const bytea *ba)
Definition mvt.c:1388

References mvt_ctx_deserialize().

Here is the call graph for this function: