ST_Dimension — The inherent dimension of this Geometry object, which must be less than or equal to the coordinate dimension.
integer ST_Dimension(geometry  g);
The inherent dimension of this Geometry object, which must
			be less than or equal to the coordinate dimension. OGC SPEC
			s2.1.1.1 - returns 0 for POINT, 1 for LINESTRING, 2 for POLYGON, and
			the largest dimension of the components of a
			GEOMETRYCOLLECTION.
 This method implements the SQL/MM specification. SQL-MM 3: 5.1.2
 This method implements the SQL/MM specification. SQL-MM 3: 5.1.2