PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ encode_point()

static void encode_point ( mvt_agg_context ctx,
LWPOINT point 
)
static

Definition at line 175 of file mvt.c.

176 {
177  VectorTile__Tile__Feature *feature = ctx->feature;
178  feature->type = VECTOR_TILE__TILE__GEOM_TYPE__POINT;
179  feature->has_type = 1;
180  feature->n_geometry = 3;
181  feature->geometry = palloc(sizeof(*feature->geometry) * 3);
182  encode_ptarray_initial(ctx, MVT_POINT, point->point, feature->geometry);
183 }
@ MVT_POINT
Definition: mvt.c:52
static uint32_t encode_ptarray_initial(mvt_agg_context *ctx, enum mvt_type type, POINTARRAY *pa, uint32_t *buffer)
Definition: mvt.c:167
POINTARRAY * point
Definition: liblwgeom.h:414
VectorTile__Tile__Feature * feature
Definition: mvt.h:65

References encode_ptarray_initial(), mvt_agg_context::feature, MVT_POINT, and LWPOINT::point.

Referenced by encode_geometry().

Here is the call graph for this function:
Here is the caller graph for this function: