PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ mvt_ctx_deserialize()

mvt_agg_context* mvt_ctx_deserialize ( const bytea *  ba)

Definition at line 1298 of file mvt.c.

1299 {
1300  ProtobufCAllocator allocator =
1301  {
1302  mvt_allocator,
1304  NULL
1305  };
1306 
1307  size_t len = VARSIZE(ba) - VARHDRSZ;
1308  VectorTile__Tile *tile = vector_tile__tile__unpack(&allocator, len, (uint8_t*)VARDATA(ba));
1309  mvt_agg_context *ctx = palloc(sizeof(mvt_agg_context));
1310  memset(ctx, 0, sizeof(mvt_agg_context));
1311  ctx->tile = tile;
1312  return ctx;
1313 }
static void mvt_deallocator(__attribute__((__unused__)) void *data, void *ptr)
Definition: mvt.c:1293
static void * mvt_allocator(__attribute__((__unused__)) void *data, size_t size)
Definition: mvt.c:1288
VectorTile__Tile * tile
Definition: mvt.h:67
unsigned char uint8_t
Definition: uthash.h:79

References mvt_allocator(), mvt_deallocator(), and mvt_agg_context::tile.

Referenced by pgis_asmvt_deserialfn().

Here is the call graph for this function:
Here is the caller graph for this function: