PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwcurvepoly_perimeter()

double lwcurvepoly_perimeter ( const LWCURVEPOLY poly)

Definition at line 148 of file lwcurvepoly.c.

149 {
150  double result=0.0;
151  uint32_t i;
152 
153  for (i=0; i<poly->nrings; i++)
154  result += lwgeom_length(poly->rings[i]);
155 
156  return result;
157 }
double lwgeom_length(const LWGEOM *geom)
Definition: lwgeom.c:1939
LWGEOM ** rings
Definition: liblwgeom.h:538
uint32_t nrings
Definition: liblwgeom.h:536
unsigned int uint32_t
Definition: uthash.h:78

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

Referenced by lwgeom_perimeter().

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