PostGIS  2.4.9dev-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  int 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:352
double m
Definition: liblwgeom.h:352
int npoints
Definition: liblwgeom.h:371
uint32_t dimensions
Definition: geobuf.h:61
static void analyze_val(struct geobuf_agg_context *ctx, double val)
Definition: geobuf.c:441
double z
Definition: liblwgeom.h:352
double y
Definition: liblwgeom.h:352
int getPoint4d_p(const POINTARRAY *pa, int n, POINT4D *point)
Definition: lwgeom_api.c:122
Here is the call graph for this function:
Here is the caller graph for this function: