Returns the coordinate dimension of a geometry.
Returns a SMALLINT value:
Any ST_Geometry type.
The coordinate dimension is the same as the coordinate dimension of the spatial reference system for the ST_Geometry value.
SELECT sample_shapes.shape.ST_CoordDim();