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

Fetch a subset of region from given Geotiff image based on minimumX, minimumY, maximumX and maximumY index as well original height and width of image

## Signatures

```sql theme={"system"}
RS_FetchRegion (Band: ARRAY[Double], coordinates: ARRAY[Integer], dimensions: ARRAY[Integer])
```

## Parameters

<ParamField body="Band" type="ARRAY[Double]" required>
  The band index.
</ParamField>

<ParamField body="coordinates" type="ARRAY[Integer]" required>
  The coordinates value.
</ParamField>

<ParamField body="dimensions" type="ARRAY[Integer]" required>
  The dimensions value.
</ParamField>

## Return type

<ResponseField type="Array<Double>">
  An array of double values.
</ResponseField>

## Example

```scala theme={"system"}
val region = spark.sql("select RS_FetchRegion(Band,Array(0, 0, 1, 2),Array(3, 3)) as Region from dataframe")
```
