Skip to main content
Returns the type of the geography object as a string (e.g., ST_Point, ST_Polygon, ST_LineString).

Signatures

ST_GeometryType (A: Geography)

Parameters

A
Geography
required
The geography whose type is returned.

Return type

The geography type as a string.

Example

SELECT ST_GeometryType(ST_GeogFromWKT('POLYGON ((0 0, 1 0, 1 1, 0 1, 0 0))'));
ST_Polygon