693 geom = PG_GETARG_GSERIALIZED_P(0);
696 lwpgerror(
"Argument to ST_M() must be a point");
709 PG_FREE_IF_COPY(geom, 0);
711 PG_RETURN_FLOAT8(p.
m);
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
uint32_t gserialized_get_type(const GSERIALIZED *s)
Extract the geometry type from the serialized form (it hides in the anonymous data area,...
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
LWPOINT * lwgeom_as_lwpoint(const LWGEOM *lwgeom)
#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)
int getPoint3dm_p(const POINTARRAY *pa, uint32_t n, POINT3DM *point)