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

Returns a struct of parameters that represent the GeoTransformation of the raster. The struct has the following schema:

* magnitudeI: size of a pixel along the transformed i axis
* magnitudeJ: size of a pixel along the transformed j axis
* thetaI: angle by which the raster is rotated (Radians positive clockwise)
* thetaIJ: angle from transformed i axis to transformed j axis (Radians positive counter-clockwise)
* offsetX: X ordinate of the upper-left corner of the upper-left pixel
* offsetY: Y ordinate of the upper-left corner of the upper-left pixel

<Note>
  Refer to [this image](https://www.researchgate.net/figure/Relation-between-the-cartesian-axes-x-y-and-i-j-axes-of-the-pixels_fig3_313860913) for a clear understanding between i & j axis and x & y-axis.
</Note>

## Signatures

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

## Parameters

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

## Return type

<ResponseField type="Struct<Double, Double, Double, Double, Double, Double>">
  A struct containing the result fields.
</ResponseField>

## Example

```sql theme={"system"}
SELECT RS_GeoTransform(
        RS_MakeEmptyRaster(2, 10, 15, 1, 2, 1, -2, 1, 2, 0)
       )
```

```
{2.23606797749979, 2.23606797749979, -1.1071487177940904, -2.214297435588181, 1.0, 2.0}
```
