> ## 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_GEOGFROMTEXT function

# ST_GEOGFROMTEXT

Constructs a `GEOGRAPHY` object from a [Well-Known Text (WKT)](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry) string. The [extended WKT format](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry#Format_variations) is supported only for Spatial Reference Identifier (SRID) 4326, which corresponds to the [WGS84](https://en.wikipedia.org/wiki/World_Geodetic_System#WGS_84) coordinate system.

[Normalization](/reference-sql/data-types/geography#normalization) and [invalid input handling](/reference-sql/data-types/geography#invalid-inputs) are applied as described in the [GEOGRAPHY type documentation](/reference-sql/data-types/geography).

## Syntax

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
ST_GEOGFROMTEXT(<WKT>)
```

## Parameters

| Parameter | Description                                      | Supported input types |
| :-------- | :----------------------------------------------- | :-------------------- |
| `<WKT>`   | A WKT string to convert to a `GEOGRAPHY` object. | `TEXT`                |

## Return Type

`ST_GEOGFROMTEXT` returns a value of type `GEOGRAPHY`.

## Example

The following code example constructs a Point from a WKT string describing 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: 5.60ms</span></p>
</div>
