781{
784
786 lwpgerror("Argument to ST_Z() must have type POINT");
787
789 {
790 PG_RETURN_NULL();
791 }
792 PG_RETURN_FLOAT8(pt.
z);
793}
int gserialized_peek_first_point(const GSERIALIZED *g, POINT4D *out_point)
Pull the first point values of a GSERIALIZED.
int gserialized_has_z(const GSERIALIZED *g)
Check if a GSERIALIZED has a Z ordinate.
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.