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

# RS_Envelope

Returns the envelope of the raster as a Geometry.

<img src="https://mintcdn.com/wherobots/AayJA2u8CknIeTgt/images/sql-functions/RS_Envelope/RS_Envelope.svg?fit=max&auto=format&n=AayJA2u8CknIeTgt&q=85&s=1bbd6c81663c4da2b154fd14409c6445" alt="RS_Envelope" width="700" height="390" data-path="images/sql-functions/RS_Envelope/RS_Envelope.svg" />

## Signatures

```sql theme={"system"}
RS_Envelope (raster: Raster)
```

## Parameters

<ParamField body="raster" type="Raster" required>
  The input raster.
</ParamField>

## Return type

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

## Example

```sql theme={"system"}
SELECT RS_Envelope(raster) FROM raster_table
```

```
POLYGON ((0 0,20 0,20 60,0 60,0 0))
```
