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

> 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":"css-variables","dark":"css-variables"}}
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:

<div className="query-window">
  ```
  SELECT ST_ASTEXT(ST_GEOGFROMTEXT('POINT(-73.98551041593687 40.75793403395676)')) AS result;
  ```

  | result <span>text</span>                    |
  | :------------------------------------------ |
  | POINT(-73.98551041593687 40.75793403395676) |

  <p><span>Rows: 1</span><span>Execution time: 6.66ms</span></p>
</div>
