PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ reverse_points()

static int reverse_points ( int  num_points,
double *  x,
double *  y,
double *  z,
double *  m 
)
static

Definition at line 466 of file pgsql2shp-core.c.

467 {
468 
469  int i,j;
470  double temp;
471  j = num_points -1;
472  for (i=0; i <num_points; i++)
473  {
474  if (j <= i)
475  {
476  break;
477  }
478  temp = x[j];
479  x[j] = x[i];
480  x[i] = temp;
481 
482  temp = y[j];
483  y[j] = y[i];
484  y[i] = temp;
485 
486  if ( z )
487  {
488  temp = z[j];
489  z[j] = z[i];
490  z[i] = temp;
491  }
492 
493  if ( m )
494  {
495  temp = m[j];
496  m[j] = m[i];
497  m[i] = temp;
498  }
499 
500  j--;
501  }
502  return 1;
503 }

References pixval::x, and pixval::y.

Referenced by create_multipolygon(), and create_polygon().

Here is the caller graph for this function: