PostGIS  2.1.10dev-r@@SVN_REVISION@@
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 }
Definition: liblwgeom.h:413
int nrings
Definition: liblwgeom.h:411
void ptarray_reverse(POINTARRAY *pa)
Definition: ptarray.c:328
int lwpoly_is_empty(const LWPOLY *poly)
Definition: lwpoly.c:327

Here is the call graph for this function:

Here is the caller graph for this function: