PostGIS  2.1.10dev-r@@SVN_REVISION@@
double lwcurvepoly_perimeter ( const LWCURVEPOLY poly)

Definition at line 134 of file lwcurvepoly.c.

References lwgeom_length(), LWCURVEPOLY::nrings, result, and LWCURVEPOLY::rings.

Referenced by lwgeom_perimeter().

135 {
136  double result=0.0;
137  int i;
138 
139  for (i=0; i<poly->nrings; i++)
140  result += lwgeom_length(poly->rings[i]);
141 
142  return result;
143 }
LWGEOM ** rings
Definition: liblwgeom.h:491
char ** result
Definition: liblwgeom.h:218
double lwgeom_length(const LWGEOM *geom)
Definition: lwgeom.c:1566

Here is the call graph for this function:

Here is the caller graph for this function: