PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ reverse_points()

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

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

449 {
450 
451  int i,j;
452  double temp;
453  j = num_points -1;
454  for (i=0; i <num_points; i++)
455  {
456  if (j <= i)
457  {
458  break;
459  }
460  temp = x[j];
461  x[j] = x[i];
462  x[i] = temp;
463 
464  temp = y[j];
465  y[j] = y[i];
466  y[i] = temp;
467 
468  if ( z )
469  {
470  temp = z[j];
471  z[j] = z[i];
472  z[i] = temp;
473  }
474 
475  if ( m )
476  {
477  temp = m[j];
478  m[j] = m[i];
479  m[i] = temp;
480  }
481 
482  j--;
483  }
484  return 1;
485 }

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

Referenced by create_multipolygon(), and create_polygon().

Here is the caller graph for this function: