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

> Generate a polygon geometry column from the minimum and maximum coordinates of an envelope with an option to add SRID

Generate a polygon geometry column from the minimum and maximum coordinates of an envelope with an option to add SRID

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

## Signature

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

ST_MakeEnvelope(
    min_x: ColumnOrNameOrNumber,
    min_y: ColumnOrNameOrNumber,
    max_x: ColumnOrNameOrNumber,
    max_y: ColumnOrNameOrNumber,
    srid: Optional[ColumnOrNameOrNumber] = None,
) -> 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>

<ParamField path="srid" type="Optional[ColumnOrNameOrNumber]" default="None">
  SRID to be set 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.