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;
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
static Data__Geometry * galloc(Data__Geometry__Type type)
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, then a duplicate point will not be added.
static int64_t * encode_coords(struct geobuf_agg_context *ctx, POINTARRAY *pa, int64_t *coords, int len, int offset)
int getPoint4d_p(const POINTARRAY *pa, int n, POINT4D *point)