PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwpoly_reverse()

void lwpoly_reverse ( LWPOLY poly)

Definition at line 201 of file lwpoly.c.

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

Referenced by lwgeom_reverse().

202 {
203  int i;
204  if ( lwpoly_is_empty(poly) ) return;
205  for (i=0; i<poly->nrings; i++)
206  ptarray_reverse(poly->rings[i]);
207 }
POINTARRAY ** rings
Definition: liblwgeom.h:441
int nrings
Definition: liblwgeom.h:439
void ptarray_reverse(POINTARRAY *pa)
Definition: ptarray.c:343
int lwpoly_is_empty(const LWPOLY *poly)
Definition: lwpoly.c:332
Here is the call graph for this function:
Here is the caller graph for this function: