PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ LWGEOM_perimeter_poly()

Datum LWGEOM_perimeter_poly ( PG_FUNCTION_ARGS  )

Definition at line 334 of file lwgeom_functions_basic.c.

335 {
336  GSERIALIZED *geom = PG_GETARG_GSERIALIZED_P(0);
337  LWGEOM *lwgeom = lwgeom_from_gserialized(geom);
338  double perimeter = 0.0;
339 
340  perimeter = lwgeom_perimeter(lwgeom);
341  PG_FREE_IF_COPY(geom, 0);
342  PG_RETURN_FLOAT8(perimeter);
343 }
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
double lwgeom_perimeter(const LWGEOM *geom)
Definition: lwgeom.c:1895

References lwgeom_from_gserialized(), and lwgeom_perimeter().

Here is the call graph for this function: