跳转至
Apache Sedona 1.9.0 已正式发布,新增 Spark 4.1 支持、proj4sedona 坐标系转换、Bing Tile 函数等众多特性!

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.5.0

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