Definition at line 848 of file lwgeom_ogc.c.
849{
854
856 {
860 }
862 {
864 }
865
867 PG_FREE_IF_COPY(geom, 0);
868
869 if ( ! lwpoint )
870 PG_RETURN_NULL();
871
873}
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
LWGEOM * lwpoint_as_lwgeom(const LWPOINT *obj)
void lwgeom_free(LWGEOM *geom)
LWPOINT * lwline_get_lwpoint(const LWLINE *line, uint32_t where)
Returns freshly allocated LWPOINT that corresponds to the index where.
LWPOINT * lwcompound_get_endpoint(const LWCOMPOUND *lwcmp)
References CIRCSTRINGTYPE, COMPOUNDTYPE, LINETYPE, lwcompound_get_endpoint(), lwgeom_free(), lwgeom_from_gserialized(), lwline_get_lwpoint(), lwpoint_as_lwgeom(), POINTARRAY::npoints, LWLINE::points, and LWGEOM::type.