ST_GeometryType — Return the geometry type of the ST_Geometry value.
text ST_GeometryType(
geometry g1)
;
Returns the type of the geometry as a string. EG: 'ST_Linestring', 'ST_Polygon','ST_MultiPolygon' etc. This function differs from GeometryType(geometry) in the case of the string and ST in front that is returned, as well as the fact that it will not indicate whether the geometry is measured.
This method implements the SQL/MM specification: SQL-MM 3: 5.1.4