# toGeometry

Converts a spherical geographical object to a Geometry object.

## Signature

> toGeometry(geographyObject)

## Usage Examples

```sql
select toGeometry(
    STPOINT(-122, 37, 1)
) AS value
from ignoreMe 
```

| value                              |
| ---------------------------------- |
| 00c05e8000000000004042800000000000 |

{% hint style="info" %}
You can create geographical objects using the [STPOINT](https://docs.pinot.apache.org/release-0.12.1/configuration-reference/functions/stpoint) and [ST\_GeogFromText](https://docs.pinot.apache.org/release-0.12.1/configuration-reference/functions/stgeogfromtext) functions.
{% endhint %}
