PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ reverse_points()

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

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

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

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

Referenced by create_multipolygon(), and create_polygon().

Here is the caller graph for this function: