254{
255 uint32_t i, j;
256 int32_t px = 0, py = 0;
257 size_t c = 0, offset = 0;
259 VectorTile__Tile__Feature *feature = ctx->
feature;
260 feature->type = VECTOR_TILE__TILE__GEOM_TYPE__POLYGON;
261 feature->has_type = 1;
262 for (i = 0; i < lwmpoly->
ngeoms; i++)
263 for (j = 0; poly = lwmpoly->
geoms[i], j < poly->
nrings; j++)
265 feature->geometry = palloc(sizeof(*feature->geometry) * c);
266 for (i = 0; i < lwmpoly->
ngeoms; i++)
267 for (j = 0; poly = lwmpoly->
geoms[i], j < poly->
nrings; j++)
269 poly->
rings[j], feature->geometry + offset,
270 &px, &py);
271 feature->n_geometry = offset;
272}
static uint32_t encode_ptarray(__attribute__((__unused__)) mvt_agg_context *ctx, enum mvt_type type, POINTARRAY *pa, uint32_t *buffer, int32_t *px, int32_t *py)
VectorTile__Tile__Feature * feature