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

Definition at line 146 of file lwcurvepoly.c.

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

Referenced by lwgeom_perimeter_2d().

147 {
148  double result=0.0;
149  int i;
151  for (i=0; i<poly->nrings; i++)
152  result += lwgeom_length_2d(poly->rings[i]);
154  return result;
155 }
LWGEOM ** rings
Definition: liblwgeom.h:491
double lwgeom_length_2d(const LWGEOM *geom)
Definition: lwgeom.c:1588
char ** result
Definition: liblwgeom.h:218

Here is the call graph for this function:

Here is the caller graph for this function: