662{
665
667 lwpgerror("Argument to ST_M() must have type POINT");
668
670 {
671 PG_RETURN_NULL();
672 }
673 PG_RETURN_FLOAT8(pt.
m);
674}
int gserialized_has_m(const GSERIALIZED *g)
Check if a GSERIALIZED has an M ordinate.
int gserialized_peek_first_point(const GSERIALIZED *g, POINT4D *out_point)
Pull the first point values of a GSERIALIZED.
uint32_t gserialized_get_type(const GSERIALIZED *g)
Extract the geometry type from the serialized form (it hides in the anonymous data area,...
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.