# ST\_GeogFromWKB

Returns a geography type object from WKB representation.

## Signature

> ST\_GeogFromWKB(wkb)

## Usage Examples

```sql
select STPOINT(-122, 37) AS point,
       ST_GeogFromWKB(
         ST_AsBinary(STPOINT(-122, 37))
       ) AS value
from ignoreMe 
```

| point                              | value                              |
| ---------------------------------- | ---------------------------------- |
| 00c05e8000000000004042800000000000 | 80c05e8000000000004042800000000000 |

```sql
select STPOINT(-122, 37, 1) AS point,
       ST_GeogFromWKB(
         ST_AsBinary(STPOINT(-122, 37, 1))
       ) AS value
from ignoreMe 
```

| point                              | value                              |
| ---------------------------------- | ---------------------------------- |
| 80c05e8000000000004042800000000000 | 80c05e8000000000004042800000000000 |

{% hint style="info" %}
You can create geometry objects in the WKB format using the [ST\_AsBinary](https://docs.pinot.apache.org/release-0.11.0/configuration-reference/functions/stasbinary) function.
{% endhint %}
