PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwcurvepoly_perimeter_2d()

double lwcurvepoly_perimeter_2d ( const LWCURVEPOLY poly)

Definition at line 160 of file lwcurvepoly.c.

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

Referenced by lwgeom_perimeter_2d().

161 {
162  double result=0.0;
163  int i;
164 
165  for (i=0; i<poly->nrings; i++)
166  result += lwgeom_length_2d(poly->rings[i]);
167 
168  return result;
169 }
LWGEOM ** rings
Definition: liblwgeom.h:535
double lwgeom_length_2d(const LWGEOM *geom)
Definition: lwgeom.c:1712
Here is the call graph for this function:
Here is the caller graph for this function: