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

Return the Convex Hull of polygon A

<img src="https://mintcdn.com/wherobots/fqh3gPDE0J25Lra_/images/sql-functions/ST_ConvexHull/ST_ConvexHull.svg?fit=max&auto=format&n=fqh3gPDE0J25Lra_&q=85&s=74dacba5005136a7b952d54a80432eaf" alt="ST_ConvexHull" width="500" height="300" data-path="images/sql-functions/ST_ConvexHull/ST_ConvexHull.svg" />

## Signatures

```sql theme={"system"}
ST_ConvexHull (A: Geometry)
```

## Parameters

<ParamField body="A" type="Geometry" required>
  The input geometry.
</ParamField>

## Return type

<ResponseField type="Geometry">
  The resulting geometry.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_ConvexHull(ST_GeomFromText('POLYGON((175 150, 20 40, 50 60, 125 100, 175 150))'))
```

```
POLYGON ((20 40, 175 150, 125 100, 20 40))
```
