Name

ST_Zmflag — returns bits indicating presence of Z and/or M coordinates.

Synopsis

ST_Zmflag ( in g any );

Description

Returns bits indicating presence of Z and/or M coordinates. 0 means that the shape has only X and Y, 1 means that M is also in use (but not Z), 2 means Z but ont M, 3 is for both M and Z.

Parameters

g

Geometry

Return Types

Returns integer.

Examples

Example24.682.Simple Use

SELECT ST_Zmflag( st_point (10, 20, 30, 40));
unnamed
INTEGER
 3