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

◆ pgis_asmvt_serialfn()

Datum pgis_asmvt_serialfn ( PG_FUNCTION_ARGS  )

Definition at line 202 of file lwgeom_out_mvt.c.

203{
204#ifndef HAVE_LIBPROTOBUF
205 elog(ERROR, "Missing libprotobuf-c");
206 PG_RETURN_NULL();
207#else
208 mvt_agg_context *ctx;
209 elog(DEBUG2, "%s called", __func__);
210 if (!AggCheckCallContext(fcinfo, NULL))
211 elog(ERROR, "%s called in non-aggregate context", __func__);
212
213 if (PG_ARGISNULL(0))
214 {
215 bytea *emptybuf = palloc(VARHDRSZ);
216 SET_VARSIZE(emptybuf, VARHDRSZ);
217 PG_RETURN_BYTEA_P(emptybuf);
218 }
219
220 ctx = (mvt_agg_context *) PG_GETARG_POINTER(0);
221 PG_RETURN_BYTEA_P(mvt_ctx_serialize(ctx));
222#endif
223}
bytea * mvt_ctx_serialize(mvt_agg_context *ctx)
Definition mvt.c:1373

References mvt_ctx_serialize().

Here is the call graph for this function: