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

# ST_GEOGFROMWKB

Constructs a `GEOGRAPHY` object from a [Well-Known Binary](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry#Well-known_binary) (WKB) byte string. The [extended WKB](https://en.wikipedia.org/wiki/Well-known_text_representation_of_geometry#Format_variations) format 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_GEOGFROMWKB(<WKB>)
```

## Parameters

| Parameter | Description                                   | Supported input types |
| :-------- | :-------------------------------------------- | :-------------------- |
| `<WKB>`   | WKB representation of the `GEOGRAPHY` object. | `BYTEA`               |

## Return Type

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

## Example

The following code example constructs a Point in the `GEOGRAPHY` data type from a WKB byte string and converts it to WKT format:

<div className="query-window">
  ```
  SELECT ST_ASTEXT(ST_GEOGFROMWKB('\x01010000003d94479a127f52c0502f80fb03614440'::BYTEA)) AS result;
  ```

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

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