PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ reverse_points()

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

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

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

Referenced by create_multipolygon(), and create_polygon().

Here is the caller graph for this function: