220 Data__Geometry *geometry;
222 geometry =
galloc(DATA__GEOMETRY__TYPE__MULTIPOINT);
224 ngeoms = lwmpoint->
ngeoms;
231 for (i = 0; i < ngeoms; i++) {
237 geometry->n_coords = ngeoms * ctx->
dimensions;
static Data__Geometry * galloc(Data__Geometry__Type type)
static int64_t * encode_coords(struct geobuf_agg_context *ctx, POINTARRAY *pa, int64_t *coords, int len, int offset)
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
int getPoint4d_p(const POINTARRAY *pa, uint32_t n, POINT4D *point)
int ptarray_append_point(POINTARRAY *pa, const POINT4D *pt, int allow_duplicates)
Append a point to the end of an existing POINTARRAY If allow_duplicate is LW_FALSE,...