PostGIS  3.0.0dev-r@@SVN_REVISION@@

◆ mvt_ctx_to_tile()

static VectorTile__Tile* mvt_ctx_to_tile ( mvt_agg_context ctx)
static

Definition at line 1053 of file mvt.c.

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

Referenced by mvt_ctx_to_bytea().

1054 {
1055  int n_layers = 1;
1056  VectorTile__Tile *tile;
1057  encode_keys(ctx);
1058  encode_values(ctx);
1059 
1060  tile = palloc(sizeof(VectorTile__Tile));
1061  vector_tile__tile__init(tile);
1062  tile->layers = palloc(sizeof(VectorTile__Tile__Layer*) * n_layers);
1063  tile->layers[0] = ctx->layer;
1064  tile->n_layers = n_layers;
1065  return tile;
1066 }
VectorTile__Tile__Layer * layer
Definition: mvt.h:68
static void encode_values(mvt_agg_context *ctx)
Definition: mvt.c:428
static void encode_keys(mvt_agg_context *ctx)
Definition: mvt.c:393
Here is the call graph for this function:
Here is the caller graph for this function: