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

Return the Well-Known Text string representation of a geometry.
It will support M coordinate if present since v1.5.0.

## Signatures

```sql theme={"system"}
ST_AsText (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 ST_AsText(ST_SetSRID(ST_Point(1.0,1.0), 3021))
```

```
POINT (1 1)
```

```sql theme={"system"}
SELECT ST_AsText(ST_MakePointM(1.0, 1.0, 1.0))
```

```
POINT M(1 1 1)
```

```sql theme={"system"}
SELECT ST_AsText(ST_MakePoint(1.0, 1.0, 1.0, 1.0))
```

```
POINT ZM(1 1 1 1)
```
