PostGIS  2.5.0dev-r@@SVN_REVISION@@
static VectorTile__Tile* mvt_ctx_to_tile ( mvt_agg_context ctx)
static

Definition at line 876 of file mvt.c.

References encode_keys(), encode_values(), and mvt_agg_context::layer.

Referenced by mvt_ctx_to_bytea().

877 {
878  encode_keys(ctx);
879  encode_values(ctx);
880 
881  int n_layers = 1;
882  VectorTile__Tile *tile = palloc(sizeof(VectorTile__Tile));
883  vector_tile__tile__init(tile);
884  tile->layers = palloc(sizeof(VectorTile__Tile__Layer*) * n_layers);
885  tile->layers[0] = ctx->layer;
886  tile->n_layers = n_layers;
887  return tile;
888 }
VectorTile__Tile__Layer * layer
Definition: mvt.h:56
static void encode_values(mvt_agg_context *ctx)
Definition: mvt.c:378
static void encode_keys(mvt_agg_context *ctx)
Definition: mvt.c:346

Here is the call graph for this function:

Here is the caller graph for this function: