392 Data__Geometry *geometry, **geometries;
394 geometry =
galloc(DATA__GEOMETRY__TYPE__GEOMETRYCOLLECTION);
396 ngeoms = lwcollection->
ngeoms;
401 geometries = palloc (
sizeof (Data__Geometry *) * ngeoms);
402 for (i = 0; i < ngeoms; i++) {
405 geometries[i] = geom;
408 geometry->n_geometries = ngeoms;
409 geometry->geometries = geometries;
static Data__Geometry * galloc(Data__Geometry__Type type)
static Data__Geometry * encode_geometry(struct geobuf_agg_context *ctx, LWGEOM *lwgeom)