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

Definition at line 993 of file lwlinearreferencing.c.

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

Referenced by lwgeom_cpa_within(), and lwgeom_tcpa().

994 {
995  POINT4D pbuf;
996  int i, n=0;
997  for (i=0; i<pa->npoints; ++i)
998  {
999  getPoint4d_p(pa, i, &pbuf); /* could be optimized */
1000  if ( pbuf.m >= tmin && pbuf.m <= tmax )
1001  mvals[n++] = pbuf.m;
1002  }
1003  return n;
1004 }
double m
Definition: liblwgeom.h:351
int npoints
Definition: liblwgeom.h:370
int getPoint4d_p(const POINTARRAY *pa, int n, POINT4D *point)
Definition: lwgeom_api.c:244

Here is the call graph for this function:

Here is the caller graph for this function: