PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwcurvepoly_perimeter_2d()

double lwcurvepoly_perimeter_2d ( const LWCURVEPOLY poly)

Definition at line 160 of file lwcurvepoly.c.

161 {
162  double result=0.0;
163  uint32_t i;
164 
165  for (i=0; i<poly->nrings; i++)
166  result += lwgeom_length_2d(poly->rings[i]);
167 
168  return result;
169 }
double lwgeom_length_2d(const LWGEOM *geom)
Definition: lwgeom.c:1961
LWGEOM ** rings
Definition: liblwgeom.h:538
uint32_t nrings
Definition: liblwgeom.h:536
unsigned int uint32_t
Definition: uthash.h:78

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

Referenced by lwgeom_perimeter_2d().

Here is the call graph for this function:
Here is the caller graph for this function: