30#include "utils/builtins.h"
31#include "utils/array.h"
32#include "utils/typcache.h"
33#include "utils/lsyscache.h"
34#include "catalog/pg_type.h"
35#include "catalog/namespace.h"
36#include "executor/executor.h"
37#include "access/htup_details.h"
38#include "access/htup.h"
39#include "../postgis_config.h"
44#ifdef HAVE_LIBPROTOBUF
46#include "vector_tile.pb-c.h"
This library is the generic geometry handling section of PostGIS.
mvt_agg_context * mvt_ctx_deserialize(const bytea *ba)
bytea * mvt_ctx_serialize(mvt_agg_context *ctx)
mvt_agg_context * mvt_ctx_combine(mvt_agg_context *ctx1, mvt_agg_context *ctx2)
void mvt_agg_init_context(mvt_agg_context *ctx)
Initialize aggregation context.
LWGEOM * mvt_geom(LWGEOM *geom, const GBOX *bounds, uint32_t extent, uint32_t buffer, bool clip_geom)
Transform a geometry into vector tile coordinate space.
void mvt_agg_transfn(mvt_agg_context *ctx)
Aggregation step.
bytea * mvt_agg_finalfn(mvt_agg_context *ctx)
Finalize aggregation.
Datum buffer(PG_FUNCTION_ARGS)
struct mvt_kv_value * uint_values_hash
MemoryContext trans_context
VectorTile__Tile__Layer * layer
struct mvt_kv_key * keys_hash
struct mvt_kv_value * float_values_hash
struct mvt_kv_value * bool_values_hash
struct mvt_kv_value * string_values_hash
struct mvt_kv_value * double_values_hash
mvt_column_cache column_cache
struct mvt_kv_value * sint_values_hash
uint32_t * column_keys_index