PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ encode_values()

static void encode_values ( mvt_agg_context ctx)
static

Definition at line 426 of file mvt.c.

427 {
428  VectorTile__Tile__Value **values;
429  POSTGIS_DEBUG(2, "encode_values called");
430 
431  values = palloc(ctx->values_hash_i * sizeof(*values));
438 
439  POSTGIS_DEBUGF(3, "encode_values n_values: %d", ctx->values_hash_i);
440  ctx->layer->n_values = ctx->values_hash_i;
441  ctx->layer->values = values;
442 
443  /* Since the tupdesc is part of Postgresql cache, we need to ensure we release it when we
444  * are done with it */
445  ReleaseTupleDesc(ctx->column_cache.tupdesc);
446  memset(&ctx->column_cache, 0, sizeof(ctx->column_cache));
447 
448 }
#define MVT_CREATE_VALUES(hash)
Definition: mvt.c:417
uint32_t values_hash_i
Definition: mvt.h:94
struct mvt_kv_value * uint_values_hash
Definition: mvt.h:89
VectorTile__Tile__Layer * layer
Definition: mvt.h:76
struct mvt_kv_value * float_values_hash
Definition: mvt.h:87
struct mvt_kv_value * bool_values_hash
Definition: mvt.h:91
struct mvt_kv_value * string_values_hash
Definition: mvt.h:86
struct mvt_kv_value * double_values_hash
Definition: mvt.h:88
mvt_column_cache column_cache
Definition: mvt.h:98
struct mvt_kv_value * sint_values_hash
Definition: mvt.h:90
TupleDesc tupdesc
Definition: mvt.h:54

References mvt_agg_context::bool_values_hash, mvt_agg_context::column_cache, mvt_agg_context::double_values_hash, mvt_agg_context::float_values_hash, mvt_agg_context::layer, MVT_CREATE_VALUES, mvt_agg_context::sint_values_hash, mvt_agg_context::string_values_hash, mvt_column_cache::tupdesc, mvt_agg_context::uint_values_hash, and mvt_agg_context::values_hash_i.

Referenced by mvt_ctx_to_tile().

Here is the caller graph for this function: