PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ analyze_pa()

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

Definition at line 448 of file geobuf.c.

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 }
static void analyze_val(struct geobuf_agg_context *ctx, double val)
Definition: geobuf.c:441
int getPoint4d_p(const POINTARRAY *pa, uint32_t n, POINT4D *point)
Definition: lwgeom_api.c:123
double m
Definition: liblwgeom.h:355
double x
Definition: liblwgeom.h:355
double z
Definition: liblwgeom.h:355
double y
Definition: liblwgeom.h:355
uint32_t npoints
Definition: liblwgeom.h:374
uint32_t dimensions
Definition: geobuf.h:61
unsigned int uint32_t
Definition: uthash.h:78

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: