PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwcurvepoly_perimeter()

double lwcurvepoly_perimeter ( const LWCURVEPOLY poly)

Definition at line 147 of file lwcurvepoly.c.

148{
149 double result=0.0;
150 uint32_t i;
151
152 for (i=0; i<poly->nrings; i++)
153 result += lwgeom_length(poly->rings[i]);
154
155 return result;
156}
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition cu_print.c:267
double lwgeom_length(const LWGEOM *geom)
Definition lwgeom.c:2066
LWGEOM ** rings
Definition liblwgeom.h:603
uint32_t nrings
Definition liblwgeom.h:608

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

Referenced by lwgeom_perimeter().

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