PostGIS  2.5.0beta1dev-r@@SVN_REVISION@@

◆ analyze_pa()

static void analyze_pa ( struct geobuf_agg_context ctx,

Definition at line 448 of file geobuf.c.

References analyze_val(), geobuf_agg_context::dimensions, getPoint4d_p(), POINT4D::m, POINTARRAY::npoints, POINT4D::x, POINT4D::y, and POINT4D::z.

Referenced by analyze_geometry().

449 {
450  uint32_t i;
451  POINT4D pt;
452  for (i = 0; i < pa->npoints; i++) {
453  getPoint4d_p(pa, i, &pt);
454  analyze_val(ctx, pt.x);
455  analyze_val(ctx, pt.y);
456  if (ctx->dimensions == 3)
457  analyze_val(ctx, pt.z);
458  if (ctx->dimensions == 4)
459  analyze_val(ctx, pt.m);
460  }
461 }
double x
Definition: liblwgeom.h:354
double m
Definition: liblwgeom.h:354
uint32_t dimensions
Definition: geobuf.h:61
unsigned int uint32_t
Definition: uthash.h:78
static void analyze_val(struct geobuf_agg_context *ctx, double val)
Definition: geobuf.c:441
double z
Definition: liblwgeom.h:354
int getPoint4d_p(const POINTARRAY *pa, uint32_t n, POINT4D *point)
Definition: lwgeom_api.c:113
double y
Definition: liblwgeom.h:354
uint32_t npoints
Definition: liblwgeom.h:373
Here is the call graph for this function:
Here is the caller graph for this function: