PostGIS  2.5.0beta1dev-r@@SVN_REVISION@@

◆ mvt_ctx_to_tile()

static VectorTile__Tile* mvt_ctx_to_tile ( mvt_agg_context ctx)
static

Definition at line 884 of file mvt.c.

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

Referenced by mvt_ctx_to_bytea().

885 {
886  int n_layers = 1;
887  VectorTile__Tile *tile;
888  encode_keys(ctx);
889  encode_values(ctx);
890 
891  tile = palloc(sizeof(VectorTile__Tile));
892  vector_tile__tile__init(tile);
893  tile->layers = palloc(sizeof(VectorTile__Tile__Layer*) * n_layers);
894  tile->layers[0] = ctx->layer;
895  tile->n_layers = n_layers;
896  return tile;
897 }
VectorTile__Tile__Layer * layer
Definition: mvt.h:56
static void encode_values(mvt_agg_context *ctx)
Definition: mvt.c:381
static void encode_keys(mvt_agg_context *ctx)
Definition: mvt.c:347
Here is the call graph for this function:
Here is the caller graph for this function: