Definition at line 685 of file lwgeom_ogc.c.
References LWPOINT::flags, FLAGS_GET_M, getPoint3dm_p(), gserialized_get_type(), lwgeom_as_lwpoint(), lwgeom_from_gserialized(), lwgeom_is_empty(), LWGEOM_startpoint_linestring(), POINT3DM::m, PG_FUNCTION_INFO_V1(), LWPOINT::point, and POINTTYPE.
Referenced by LWGEOM_z_point().
692 geom = PG_GETARG_GSERIALIZED_P(0);
695 lwpgerror(
"Argument to ST_M() must be a point");
708 PG_FREE_IF_COPY(geom, 0);
710 PG_RETURN_FLOAT8(p.
m);
uint32_t gserialized_get_type(const GSERIALIZED *s)
Extract the geometry type from the serialized form (it hides in the anonymous data area...
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
int getPoint3dm_p(const POINTARRAY *pa, int n, POINT3DM *point)
LWPOINT * lwgeom_as_lwpoint(const LWGEOM *lwgeom)
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define FLAGS_GET_M(flags)
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members) ...