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

Returns a raster geometry from a GeoTiff file.

## Signatures

```sql theme={"system"}
RS_FromGeoTiff(content: ARRAY[Byte])
```

```sql theme={"system"}
RS_FromGeoTiff(content: ARRAY[Byte], autoRescale: Boolean)
```

## Parameters

<ParamField body="content" type="ARRAY[Byte]" required>
  A byte array that contains the content of the GeoTiff file.
</ParamField>

<ParamField body="autoRescale" type="Boolean" default="true">
  Whether to rescale the pixel values using the scale and offset values in the GeoTiff file. The default value is `true`.
</ParamField>

## Return type

<ResponseField type="Raster">
  The resulting raster.
</ResponseField>

## Example

```scala theme={"system"}
var df = sedona.read.format("binaryFile").load("/some/path/*.tiff")
df = df.withColumn("raster", f.expr("RS_FromGeoTiff(content)"))
```
