

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

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

ST\$1GeometryType 會將幾何的類型傳回為字串。

**語法**

```
ST_GeometryType(geom)
```

**Arguments (引數)**
+ `geom` - 資料類型 GEOMETRY 的值，或評估為 GEOMETRY 類型的表達式。

**傳回類型**

STRING

如果 geom 為 Null，則會傳回 Null。

如果輸入參數不是幾何，則會傳回 BadRequestException。

**範例**

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