Definition at line 2016 of file lwgeom.c.
2017{
2026 {
2027 double perimeter = 0.0;
2028 uint32_t i;
2030 for ( i = 0; i < col->
ngeoms; i++ )
2032 return perimeter;
2033 }
2034 else
2035 return 0.0;
2036}
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().