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

# GeometryType

Returns the type of the geometry as a string. Eg: 'LINESTRING', 'POLYGON', 'MULTIPOINT', etc. This function also indicates if the geometry is measured, by returning a string of the form 'POINTM'.

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

## Signatures

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

## Parameters

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

## Return type

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

## Examples

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

```
 geometrytype
--------------
 LINESTRING
```

```sql theme={"system"}
SELECT GeometryType(ST_GeomFromText('POINTM(0 0 1)'));
```

```
 geometrytype
--------------
 POINTM
```
