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

Definition at line 1007 of file lwlinearreferencing.c.

Referenced by lwgeom_cpa_within(), and lwgeom_tcpa().

1008 {
1009  int i, last=0;
1010  for (i=1; i<nvals; ++i)
1011  {
1012  // lwnotice("(I%d):%g", i, vals[i]);
1013  if ( vals[i] != vals[last] )
1014  {
1015  vals[++last] = vals[i];
1016  // lwnotice("(O%d):%g", last, vals[last]);
1017  }
1018  }
1019  return last+1;
1020 }

Here is the caller graph for this function: