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

Construct a Geography from WKT. If SRID is not set, it defaults to 0 (unknown).

## Signatures

```sql theme={"system"}
ST_GeogFromWKT (Wkt: String)
```

```sql theme={"system"}
ST_GeogFromWKT (Wkt: String, srid: Integer)
```

## Parameters

<ParamField body="Wkt" type="String" required>
  A Well-Known Text (WKT) representation of a geometry.
</ParamField>

<ParamField body="srid" type="Integer">
  Spatial Reference Identifier.
</ParamField>

## Return type

<ResponseField type="Geography">
  The computed result.
</ResponseField>

## Examples

```sql theme={"system"}
SELECT ST_GeogFromWKT('LINESTRING (1 2, 3 4, 5 6)')
```

```
LINESTRING (1 2, 3 4, 5 6)
```

```sql theme={"system"}
SELECT ST_AsEWKT(ST_GeogFromWKT('LINESTRING (1 2, 3 4, 5 6)', 4326))
```

```
SRID=4326; LINESTRING (1 2, 3 4, 5 6)
```
