ST_Dimension method

Returns the dimension of the ST_Geometry value. Points have dimension 0, lines have dimension 1, and surfaces have dimension 2. Any empty geometry has dimension -1.

 Syntax
 Returns
 Remarks
 See also
 Standards and compatibility
 Example