PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ encode_line()

static void encode_line ( mvt_agg_context ctx,
LWLINE lwline 
)
static

Definition at line 205 of file mvt.c.

206 {
207  size_t c;
208  VectorTile__Tile__Feature *feature = ctx->feature;
209  feature->type = VECTOR_TILE__TILE__GEOM_TYPE__LINESTRING;
210  feature->has_type = 1;
211  c = 2 + lwline->points->npoints * 2;
212  feature->geometry = palloc(sizeof(*feature->geometry) * c);
213  feature->n_geometry = encode_ptarray_initial(ctx, MVT_LINE,
214  lwline->points, feature->geometry);
215 }
@ MVT_LINE
Definition: mvt.c:59
static uint32_t encode_ptarray_initial(mvt_agg_context *ctx, enum mvt_type type, POINTARRAY *pa, uint32_t *buffer)
Definition: mvt.c:173
POINTARRAY * points
Definition: liblwgeom.h:469
uint32_t npoints
Definition: liblwgeom.h:413
VectorTile__Tile__Feature * feature
Definition: mvt.h:66

References encode_ptarray_initial(), mvt_agg_context::feature, MVT_LINE, POINTARRAY::npoints, and LWLINE::points.

Referenced by encode_geometry().

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