PostGIS  2.3.7dev-r@@SVN_REVISION@@
void lwpoly_reverse ( LWPOLY poly)

Definition at line 272 of file lwpoly.c.

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

Referenced by lwgeom_reverse().

273 {
274  int i;
275  if ( lwpoly_is_empty(poly) ) return;
276  for (i=0; i<poly->nrings; i++)
277  ptarray_reverse(poly->rings[i]);
278 }
Definition: liblwgeom.h:456
int nrings
Definition: liblwgeom.h:454
void ptarray_reverse(POINTARRAY *pa)
Definition: ptarray.c:343
int lwpoly_is_empty(const LWPOLY *poly)
Definition: lwpoly.c:403

Here is the call graph for this function:

Here is the caller graph for this function: