Definition at line 168 of file geobuf.c.
173 int64_t sum[] = { 0, 0, 0, 0 };
176 coords = palloc(
sizeof (int64_t) * len * ctx->
dimensions);
178 coords = repalloc(coords,
sizeof (int64_t) *
182 for (i = 0; i < len; i++) {
184 sum[0] += coords[c++] = (int64_t) (ceil(pt.
x * ctx->
e) - sum[0]);
185 sum[1] += coords[c++] = (int64_t) (ceil(pt.
y * ctx->
e) - sum[1]);
187 sum[2] += coords[c++] = (int64_t) (ceil(pt.
z * ctx->
e) - sum[2]);
189 sum[3] += coords[c++] = (int64_t) (ceil(pt.
m * ctx->
e) - sum[3]);
int getPoint4d_p(const POINTARRAY *pa, uint32_t n, POINT4D *point)
References geobuf_agg_context::dimensions, geobuf_agg_context::e, getPoint4d_p(), POINT4D::m, POINT4D::x, POINT4D::y, and POINT4D::z.
Referenced by encode_line(), encode_mline(), encode_mpoint(), encode_mpoly(), encode_point(), and encode_poly().