371 PG_RETURN_FLOAT8(0.0);
376 PG_FREE_IF_COPY(geom, 0);
381 elog(ERROR,
"lwgeom_length_spheroid returned length < 0.0");
386 PG_RETURN_FLOAT8(length);
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
void lwgeom_free(LWGEOM *geom)
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
double lwgeom_length_spheroid(const LWGEOM *geom, const SPHEROID *s)
Calculate the geodetic length of a lwgeom on the unit sphere.