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

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

</AgentInstructions>

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

```sql theme={"theme":{"light":"github-light","dark":"github-dark"}}
SELECT ST_ASTEXT(ST_GEOGFROMWKB('\x01010000003d94479a127f52c0502f80fb03614440'::BYTEA)) AS result
```

**Returns**

| result (TEXT)                                 |
| :-------------------------------------------- |
| 'POINT(-73.98551041593687 40.75793403395676)' |
