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

◆ LWGEOM_perimeter2d_poly()

Datum LWGEOM_perimeter2d_poly ( PG_FUNCTION_ARGS  )

Definition at line 354 of file lwgeom_functions_basic.c.

355{
356 GSERIALIZED *geom = PG_GETARG_GSERIALIZED_P(0);
357 LWGEOM *lwgeom = lwgeom_from_gserialized(geom);
358 double perimeter = 0.0;
359
360 perimeter = lwgeom_perimeter_2d(lwgeom);
361 PG_FREE_IF_COPY(geom, 0);
362 PG_RETURN_FLOAT8(perimeter);
363}
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
double lwgeom_perimeter_2d(const LWGEOM *geom)
Definition lwgeom.c:2044

References lwgeom_from_gserialized(), and lwgeom_perimeter_2d().

Here is the call graph for this function: