> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_GeometryType

Returns the type of the geometry as a string. EG: 'ST\_LineString', 'ST\_Polygon' etc.

<img src="https://mintcdn.com/wherobots/fqh3gPDE0J25Lra_/images/sql-functions/ST_GeometryType/ST_GeometryType.svg?fit=max&auto=format&n=fqh3gPDE0J25Lra_&q=85&s=7c44cbd34a5983f83ca399d1902ac773" alt="ST_GeometryType" width="500" height="300" data-path="images/sql-functions/ST_GeometryType/ST_GeometryType.svg" />

## Signatures

```sql theme={"system"}
ST_GeometryType (A: Geometry)
```

## Parameters

<ParamField body="A" type="Geometry" required>
  The input geometry.
</ParamField>

## Return type

<ResponseField type="String">
  A string representation.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_GeometryType(ST_GeomFromText('LINESTRING(77.29 29.07,77.42 29.26,77.27 29.31,77.29 29.07)'))
```

```
ST_LineString
```
