PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ analyze_pa()

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

Definition at line 462 of file geobuf.c.

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