PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ ptarray_collect_mvals()

static int ptarray_collect_mvals ( const POINTARRAY pa,
double  tmin,
double  tmax,
double *  mvals 
)
static

Definition at line 1059 of file lwlinearreferencing.c.

1060 {
1061  POINT4D pbuf;
1062  uint32_t i, n = 0;
1063  for (i = 0; i < pa->npoints; ++i)
1064  {
1065  getPoint4d_p(pa, i, &pbuf); /* could be optimized */
1066  if (pbuf.m >= tmin && pbuf.m <= tmax)
1067  mvals[n++] = pbuf.m;
1068  }
1069  return n;
1070 }
int getPoint4d_p(const POINTARRAY *pa, uint32_t n, POINT4D *point)
Definition: lwgeom_api.c:125
double m
Definition: liblwgeom.h:414
uint32_t npoints
Definition: liblwgeom.h:427

References getPoint4d_p(), POINT4D::m, and POINTARRAY::npoints.

Referenced by lwgeom_cpa_within(), and lwgeom_tcpa().

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