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

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.firebolt.io/feedback

```json
{
  "path": "/reference-sql/functions-reference/geospatial/st_astext",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

> Reference material for ST_ASTEXT function

# ST_ASTEXT

Converts shapes of the `GEOGRAPHY` data type to the [Well-Known Text (WKT)](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry) format.

## Syntax

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
ST_ASTEXT(<object>)
```

## Parameters

| Parameter  | Description                                      | Supported input types |
| :--------- | :----------------------------------------------- | :-------------------- |
| `<object>` | The `GEOGRAPHY` object to convert to WKT format. | `GEOGRAPHY`           |

## Return Type

`ST_ASTEXT` returns a value of type `TEXT`.

## Example

The following code example creates a `GEOGRAPHY` object from the WKT representation of a Point at specified longitude and latitude coordinates and converts it to WKT format:

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
SELECT ST_ASTEXT(ST_GEOGFROMTEXT('POINT(-73.98551041593687 40.75793403395676)')) AS result
```

**Returns**

| result (TEXT)                                 |
| :-------------------------------------------- |
| 'POINT(-73.98551041593687 40.75793403395676)' |
