PostGIS  2.2.7dev-r@@SVN_REVISION@@
static int ptarray_collect_mvals ( const POINTARRAY pa,
double  tmin,
double  tmax,
double *  mvals 
)
static

Definition at line 979 of file lwlinearreferencing.c.

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

Referenced by lwgeom_cpa_within(), and lwgeom_tcpa().

980 {
981  POINT4D pbuf;
982  int i, n=0;
983  for (i=0; i<pa->npoints; ++i)
984  {
985  getPoint4d_p(pa, i, &pbuf); /* could be optimized */
986  if ( pbuf.m >= tmin && pbuf.m <= tmax )
987  mvals[n++] = pbuf.m;
988  }
989  return n;
990 }
double m
Definition: liblwgeom.h:336
int npoints
Definition: liblwgeom.h:355
int getPoint4d_p(const POINTARRAY *pa, int n, POINT4D *point)
Definition: lwgeom_api.c:231

Here is the call graph for this function:

Here is the caller graph for this function: