Skip to main content
Returns the type of the geometry as a string. EG: ‘ST_LineString’, ‘ST_Polygon’ etc. ST_GeometryType

Signatures

ST_GeometryType (A: Geometry)

Parameters

A
Geometry
required
The input geometry.

Return type

A string representation.

Example

SELECT ST_GeometryType(ST_GeomFromText('LINESTRING(77.29 29.07,77.42 29.26,77.27 29.31,77.29 29.07)'))
ST_LineString