PostGIS
3.0.6dev-r@@SVN_REVISION@@
◆
pgis_asgeobuf_finalfn()
Datum pgis_asgeobuf_finalfn
(
PG_FUNCTION_ARGS
)
Definition at line
93
of file
lwgeom_out_geobuf.c
.
94
{
95
#if ! (defined HAVE_LIBPROTOBUF && defined HAVE_GEOBUF)
96
elog(ERROR,
"ST_AsGeoBuf: Missing libprotobuf-c >= version 1.1"
);
97
PG_RETURN_NULL();
98
#else
99
uint8_t *buf;
100
struct
geobuf_agg_context
*ctx;
101
if
(!AggCheckCallContext(fcinfo, NULL))
102
elog(ERROR,
"pgis_asmvt_finalfn called in non-aggregate context"
);
103
104
if
(PG_ARGISNULL(0))
105
PG_RETURN_NULL();
106
107
ctx = (
struct
geobuf_agg_context
*) PG_GETARG_POINTER(0);
108
buf =
geobuf_agg_finalfn
(ctx);
109
PG_RETURN_BYTEA_P(buf);
110
#endif
111
}
geobuf_agg_finalfn
uint8_t * geobuf_agg_finalfn(struct geobuf_agg_context *ctx)
Finalize aggregation.
Definition:
geobuf.c:624
geobuf_agg_context
Definition:
geobuf.h:49
References
geobuf_agg_finalfn()
.
Here is the call graph for this function:
postgis
lwgeom_out_geobuf.c
Generated by
1.9.1