PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ analyze_pa()

static void analyze_pa ( struct geobuf_agg_context ctx,
POINTARRAY pa 
)
static

Definition at line 461 of file geobuf.c.

462 {
463  uint32_t i;
464  POINT4D pt;
465  for (i = 0; i < pa->npoints; i++) {
466  getPoint4d_p(pa, i, &pt);
467  analyze_val(ctx, pt.x);
468  analyze_val(ctx, pt.y);
469  if (ctx->dimensions == 3)
470  analyze_val(ctx, pt.z);
471  if (ctx->dimensions == 4)
472  analyze_val(ctx, pt.m);
473  }
474 }
static void analyze_val(struct geobuf_agg_context *ctx, double val)
Definition: geobuf.c:454
int getPoint4d_p(const POINTARRAY *pa, uint32_t n, POINT4D *point)
Definition: lwgeom_api.c:125
double m
Definition: liblwgeom.h:414
double x
Definition: liblwgeom.h:414
double z
Definition: liblwgeom.h:414
double y
Definition: liblwgeom.h:414
uint32_t npoints
Definition: liblwgeom.h:427
uint32_t dimensions
Definition: geobuf.h:61

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

Referenced by analyze_geometry().

Here is the call graph for this function:
Here is the caller graph for this function: