ST_GeometryType

Determine the type of the geometry.

Syntax

ST_GeometryType(geo);
geo
The input geometry.

Type: ST_GEOMETRY(ANY)

Returns

A value of type VARCHAR(50) that contains a string that describes the type of the geometry.

Examples

SELECT inza..ST_GeometryType(inza..ST_WKTToSQL('POINT (0 0)'));

ST_GEOMETRYTYPE
---------------
ST_POLYGON
(1 row)