PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwpoly_reverse()

void lwpoly_reverse ( LWPOLY poly)

Definition at line 314 of file lwpoly.c.

References lwpoly_is_empty(), LWPOLY::nrings, ptarray_reverse(), and LWPOLY::rings.

Referenced by lwgeom_reverse().

315 {
316  int i;
317  if ( lwpoly_is_empty(poly) ) return;
318  for (i=0; i<poly->nrings; i++)
319  ptarray_reverse(poly->rings[i]);
320 }
Definition: liblwgeom.h:457
int nrings
Definition: liblwgeom.h:455
void ptarray_reverse(POINTARRAY *pa)
Definition: ptarray.c:343
int lwpoly_is_empty(const LWPOLY *poly)
Definition: lwpoly.c:445
Here is the call graph for this function:
Here is the caller graph for this function: