PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ pgis_asmvt_deserialfn()

Datum pgis_asmvt_deserialfn ( PG_FUNCTION_ARGS  )

Definition at line 240 of file lwgeom_out_mvt.c.

241 {
242 #ifndef HAVE_LIBPROTOBUF
243  elog(ERROR, "ST_AsMVT: Compiled without protobuf-c support");
244  PG_RETURN_NULL();
245 #else
246  MemoryContext aggcontext, oldcontext;
247  mvt_agg_context *ctx;
248  elog(DEBUG2, "%s called", __func__);
249  if (!AggCheckCallContext(fcinfo, &aggcontext))
250  elog(ERROR, "%s called in non-aggregate context", __func__);
251 
252  oldcontext = MemoryContextSwitchTo(aggcontext);
253  ctx = mvt_ctx_deserialize(PG_GETARG_BYTEA_P(0));
254  MemoryContextSwitchTo(oldcontext);
255 
256  PG_RETURN_POINTER(ctx);
257 #endif
258 }
mvt_agg_context * mvt_ctx_deserialize(const bytea *ba)
Definition: mvt.c:1141

References mvt_ctx_deserialize().

Here is the call graph for this function: