> ## 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_PolygonFromEnvelope (Python)

> Generate a polygon geometry column from the minimum and maximum coordinates of an envelope.

Generate a polygon geometry column from the minimum and maximum coordinates of an envelope.

SQL reference: [`ST_PolygonFromEnvelope`](/reference/wherobots-db/geometry-data/constructors/ST_PolygonFromEnvelope)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_constructors import ST_PolygonFromEnvelope

ST_PolygonFromEnvelope(
    min_x: ColumnOrNameOrNumber,
    min_y: ColumnOrNameOrNumber,
    max_x: ColumnOrNameOrNumber,
    max_y: ColumnOrNameOrNumber,
) -> Column
```

## Parameters

<ParamField path="min_x" type="ColumnOrNameOrNumber" required>
  Minimum X coordinate for the envelope.
</ParamField>

<ParamField path="min_y" type="ColumnOrNameOrNumber" required>
  Minimum Y coordinate for the envelope.
</ParamField>

<ParamField path="max_x" type="ColumnOrNameOrNumber" required>
  Maximum X coordinate for the envelope.
</ParamField>

<ParamField path="max_y" type="ColumnOrNameOrNumber" required>
  Maximum Y coordinate for the envelope.
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  Polygon geometry column representing the envelope described by the coordinate bounds.
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.