PostGIS  2.3.7dev-r@@SVN_REVISION@@
static int uniq ( double *  vals,
int  nvals 
)
static

Definition at line 1021 of file lwlinearreferencing.c.

Referenced by lwgeom_cpa_within(), and lwgeom_tcpa().

1022 {
1023  int i, last=0;
1024  for (i=1; i<nvals; ++i)
1025  {
1026  // lwnotice("(I%d):%g", i, vals[i]);
1027  if ( vals[i] != vals[last] )
1028  {
1029  vals[++last] = vals[i];
1030  // lwnotice("(O%d):%g", last, vals[last]);
1031  }
1032  }
1033  return last+1;
1034 }

Here is the caller graph for this function: