801{
804
806 lwpgerror("Argument to ST_M() must have type POINT");
807
809 {
810 PG_RETURN_NULL();
811 }
812 PG_RETURN_FLOAT8(pt.
m);
813}
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.