PostGIS  2.3.7dev-r@@SVN_REVISION@@
static int reverse_points ( int  num_points,
double *  x,
double *  y,
double *  z,
double *  m 
)
static

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

Referenced by create_multipolygon(), and create_polygon().

439 {
440 
441  int i,j;
442  double temp;
443  j = num_points -1;
444  for (i=0; i <num_points; i++)
445  {
446  if (j <= i)
447  {
448  break;
449  }
450  temp = x[j];
451  x[j] = x[i];
452  x[i] = temp;
453 
454  temp = y[j];
455  y[j] = y[i];
456  y[i] = temp;
457 
458  if ( z )
459  {
460  temp = z[j];
461  z[j] = z[i];
462  z[i] = temp;
463  }
464 
465  if ( m )
466  {
467  temp = m[j];
468  m[j] = m[i];
469  m[i] = temp;
470  }
471 
472  j--;
473  }
474  return 1;
475 }
tuple x
Definition: pixval.py:53
tuple y
Definition: pixval.py:54

Here is the caller graph for this function: