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

◆ lwcurvepoly_perimeter_2d()

double lwcurvepoly_perimeter_2d ( const LWCURVEPOLY poly)

Definition at line 159 of file lwcurvepoly.c.

160{
161 double result=0.0;
162 uint32_t i;
163
164 for (i=0; i<poly->nrings; i++)
165 result += lwgeom_length_2d(poly->rings[i]);
166
167 return result;
168}
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition cu_print.c:267
double lwgeom_length_2d(const LWGEOM *geom)
Definition lwgeom.c:2088
LWGEOM ** rings
Definition liblwgeom.h:603
uint32_t nrings
Definition liblwgeom.h:608

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

Referenced by lwgeom_perimeter_2d().

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