PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ add_key()

static uint32_t add_key ( mvt_agg_context ctx,
char *  name 
)
static

Definition at line 314 of file mvt.c.

315 {
316  struct mvt_kv_key *kv;
317  size_t size = strlen(name);
318  kv = palloc(sizeof(*kv));
319  kv->id = ctx->keys_hash_i++;
320  kv->name = name;
321  HASH_ADD_KEYPTR(hh, ctx->keys_hash, name, size, kv);
322  return kv->id;
323 }
uint32_t keys_hash_i
Definition: mvt.h:78
struct mvt_kv_key * keys_hash
Definition: mvt.h:70
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, and mvt_kv_key::name.

Referenced by parse_column_keys(), and parse_jsonb().

Here is the caller graph for this function: