Definition at line 2044 of file lwgeom.c.
2045{
2054 {
2055 double perimeter = 0.0;
2056 uint32_t i;
2058 for ( i = 0; i < col->
ngeoms; i++ )
2060 return perimeter;
2061 }
2062 else
2063 return 0.0;
2064}
double lwtriangle_perimeter_2d(const LWTRIANGLE *triangle)
double lwpoly_perimeter_2d(const LWPOLY *poly)
Compute the sum of polygon rings length (forcing 2d computation).
double lwcurvepoly_perimeter_2d(const LWCURVEPOLY *poly)
int lwgeom_is_collection(const LWGEOM *geom)
Determine whether a LWGEOM contains sub-geometries or not This basically just checks that the struct ...
double lwgeom_perimeter_2d(const LWGEOM *geom)
References CURVEPOLYTYPE, LWCOLLECTION::geoms, lwcurvepoly_perimeter_2d(), lwgeom_is_collection(), lwgeom_perimeter_2d(), lwpoly_perimeter_2d(), lwtriangle_perimeter_2d(), LWCOLLECTION::ngeoms, POLYGONTYPE, TRIANGLETYPE, and LWGEOM::type.
Referenced by LWGEOM_perimeter2d_poly(), and lwgeom_perimeter_2d().