> ## 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_geogfromtext",
  "feedback": "Description of the issue"
}
```

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

</AgentInstructions>

> 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":"github-light","dark":"github-dark"}}
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:

```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)' |
