PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ encode_keys()

static void encode_keys ( mvt_agg_context ctx)
static

Definition at line 404 of file mvt.c.

405 {
406  struct mvt_kv_key *kv;
407  size_t n_keys = ctx->keys_hash_i;
408  char **keys = palloc(n_keys * sizeof(*keys));
409  for (kv = ctx->keys_hash; kv != NULL; kv=kv->hh.next)
410  keys[kv->id] = kv->name;
411  ctx->layer->n_keys = n_keys;
412  ctx->layer->keys = keys;
413 
414  HASH_CLEAR(hh, ctx->keys_hash);
415 }
VectorTile__Tile__Layer * layer
Definition: mvt.h:76
uint32_t keys_hash_i
Definition: mvt.h:96
struct mvt_kv_key * keys_hash
Definition: mvt.h:83
uint32_t id
Definition: mvt.c:66
UT_hash_handle hh
Definition: mvt.c:67
char * name
Definition: mvt.c:65
Definition: mvt.c:64

References mvt_kv_key::hh, mvt_kv_key::id, mvt_agg_context::keys_hash, mvt_agg_context::keys_hash_i, mvt_agg_context::layer, and mvt_kv_key::name.

Referenced by mvt_ctx_to_tile().

Here is the caller graph for this function: