PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ encode_values()

static void encode_values ( mvt_agg_context ctx)
static

Definition at line 375 of file mvt.c.

376 {
377  VectorTile__Tile__Value **values;
378  POSTGIS_DEBUG(2, "encode_values called");
379 
380  values = palloc(ctx->values_hash_i * sizeof(*values));
387 
388  POSTGIS_DEBUGF(3, "encode_values n_values: %d", ctx->values_hash_i);
389  ctx->layer->n_values = ctx->values_hash_i;
390  ctx->layer->values = values;
391 
392  /* Since the tupdesc is part of Postgresql cache, we need to ensure we release it when we
393  * are done with it */
394  ReleaseTupleDesc(ctx->column_cache.tupdesc);
395  memset(&ctx->column_cache, 0, sizeof(ctx->column_cache));
396 
397 }
#define MVT_CREATE_VALUES(hash)
Definition: mvt.c:366
uint32_t values_hash_i
Definition: mvt.h:92
struct mvt_kv_value * uint_values_hash
Definition: mvt.h:87
VectorTile__Tile__Layer * layer
Definition: mvt.h:76
struct mvt_kv_value * float_values_hash
Definition: mvt.h:85
struct mvt_kv_value * bool_values_hash
Definition: mvt.h:89
struct mvt_kv_value * string_values_hash
Definition: mvt.h:84
struct mvt_kv_value * double_values_hash
Definition: mvt.h:86
mvt_column_cache column_cache
Definition: mvt.h:97
struct mvt_kv_value * sint_values_hash
Definition: mvt.h:88
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: