PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ encode_keys()

static void encode_keys ( mvt_agg_context ctx)
static

Definition at line 353 of file mvt.c.

354 {
355  struct mvt_kv_key *kv;
356  size_t n_keys = ctx->keys_hash_i;
357  char **keys = palloc(n_keys * sizeof(*keys));
358  for (kv = ctx->keys_hash; kv != NULL; kv=kv->hh.next)
359  keys[kv->id] = kv->name;
360  ctx->layer->n_keys = n_keys;
361  ctx->layer->keys = keys;
362 
363  HASH_CLEAR(hh, ctx->keys_hash);
364 }
VectorTile__Tile__Layer * layer
Definition: mvt.h:76
uint32_t keys_hash_i
Definition: mvt.h:94
struct mvt_kv_key * keys_hash
Definition: mvt.h:81
uint32_t id
Definition: mvt.c:69
UT_hash_handle hh
Definition: mvt.c:70
char * name
Definition: mvt.c:68
Definition: mvt.c:67

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: