PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ mvt_ctx_to_tile()

static VectorTile__Tile * mvt_ctx_to_tile ( mvt_agg_context ctx)
static

Definition at line 1079 of file mvt.c.

1080{
1081 int n_layers = 1;
1082 VectorTile__Tile *tile;
1083 encode_keys(ctx);
1084 encode_values(ctx);
1085
1086 tile = palloc(sizeof(VectorTile__Tile));
1087 vector_tile__tile__init(tile);
1088 tile->layers = palloc(sizeof(VectorTile__Tile__Layer*) * n_layers);
1089 tile->layers[0] = ctx->layer;
1090 tile->n_layers = n_layers;
1091 return tile;
1092}
static void encode_keys(mvt_agg_context *ctx)
Definition mvt.c:403
static void encode_values(mvt_agg_context *ctx)
Definition mvt.c:425
VectorTile__Tile__Layer * layer
Definition mvt.h:76

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

Referenced by mvt_ctx_to_bytea().

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