

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# ST\$1 GeometryType
<a name="access-graph-opencypher-22-spatial-functions-st-geometrytype"></a>

ST\$1 以字符串GeometryType 形式返回几何体的类型。

**语法**

```
ST_GeometryType(geom)
```

**参数**
+ `geom`-数据类型为 GEOMETRY 的值或计算结果为 GEOMETRY 类型的表达式。

**返回类型**

string

如果 geom 为 null，则返回 null。

如果输入参数不是几何， BadRequestException 则返回 a。

**示例**

```
RETURN ST_GeometryType(ST_GeomFromText('LINESTRING(77.29 29.07,77.42 29.26,77.27 29.31,77.29 29.07)'));
ST_LineString
```