Skip to content
πŸŽ‰ SedonaDB 0.4.0 is out now! πŸ—ΊοΈ Python DataFrame API, R dplyr, Geography support & GPU-accelerated spatial joins. Read the release blog β†’

ST_GeometryType

Introduction: Returns the type of the geometry as a string. EG: 'ST_LineString', 'ST_Polygon' etc.

ST_GeometryType

Format: ST_GeometryType (A: Geometry)

Return type: String

Since: v1.0.0

SQL Example

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

Output:

ST_LineString