PostGIS 3.0.6dev-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 1327 of file mvt.c.

1328{
1329 int n_layers = 1;
1330 VectorTile__Tile *tile;
1331 encode_keys(ctx);
1332 encode_values(ctx);
1333
1334 tile = palloc(sizeof(VectorTile__Tile));
1335 vector_tile__tile__init(tile);
1336 tile->layers = palloc(sizeof(VectorTile__Tile__Layer*) * n_layers);
1337 tile->layers[0] = ctx->layer;
1338 tile->n_layers = n_layers;
1339 return tile;
1340}
static void encode_keys(mvt_agg_context *ctx)
Definition mvt.c:392
static void encode_values(mvt_agg_context *ctx)
Definition mvt.c:427
VectorTile__Tile__Layer * layer
Definition mvt.h:67

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: