PostGIS  2.5.0dev-r@@SVN_REVISION@@
Datum pgis_asmvt_deserialfn ( PG_FUNCTION_ARGS  )

Definition at line 173 of file lwgeom_out_mvt.c.

References mvt_ctx_deserialize().

174 {
175 #ifndef HAVE_LIBPROTOBUF
176  elog(ERROR, "Missing libprotobuf-c");
177  PG_RETURN_NULL();
178 #else
179  MemoryContext aggcontext, oldcontext;
180  elog(DEBUG2, "%s called", __func__);
181  if (!AggCheckCallContext(fcinfo, &aggcontext))
182  elog(ERROR, "%s called in non-aggregate context", __func__);
183 
184  oldcontext = MemoryContextSwitchTo(aggcontext);
185  mvt_agg_context *ctx = mvt_ctx_deserialize(PG_GETARG_BYTEA_P(0));
186  MemoryContextSwitchTo(oldcontext);
187 
188  PG_RETURN_POINTER(ctx);
189 #endif
190 }
mvt_agg_context * mvt_ctx_deserialize(const bytea *ba)
Definition: mvt.c:934

Here is the call graph for this function: