Definition at line 162 of file geobuf.c.
167 int64_t sum[] = { 0, 0, 0, 0 };
170 coords = palloc(
sizeof (int64_t) * len * ctx->
dimensions);
172 coords = repalloc(coords,
sizeof (int64_t) *
176 for (i = 0; i < len; i++) {
178 sum[0] += coords[c++] = (int64_t) (ceil(pt.
x * ctx->
e) - sum[0]);
179 sum[1] += coords[c++] = (int64_t) (ceil(pt.
y * ctx->
e) - sum[1]);
181 sum[2] += coords[c++] = (int64_t) (ceil(pt.
z * ctx->
e) - sum[2]);
183 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(), encode_poly(), and encode_triangle().