PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ encode_keys()

static void encode_keys ( mvt_agg_context ctx)
static

Definition at line 403 of file mvt.c.

404 {
405  struct mvt_kv_key *kv;
406  size_t n_keys = ctx->keys_hash_i;
407  char **keys = palloc(n_keys * sizeof(*keys));
408  for (kv = ctx->keys_hash; kv != NULL; kv=kv->hh.next)
409  keys[kv->id] = kv->name;
410  ctx->layer->n_keys = n_keys;
411  ctx->layer->keys = keys;
412 
413  HASH_CLEAR(hh, ctx->keys_hash);
414 }
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:65
UT_hash_handle hh
Definition: mvt.c:66
char * name
Definition: mvt.c:64
Definition: mvt.c:63

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: