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

Returns the pixel height of the raster in CRS units.

<Note>
  RS\_ScaleY attempts to get an Affine transform on the grid in order to return scaleX (See [World File](https://en.wikipedia.org/wiki/World_file) for more details). If the transform on the geometry is not an Affine transform, RS\_ScaleY will throw an UnsupportedException:

  ```
  UnsupportedOperationException("Only AffineTransform2D is supported")
  ```
</Note>

For more information about ScaleX, ScaleY, SkewX, SkewY, please refer to the [Affine Transformations](/reference/wherobots-db/raster-data/raster-affine-transformation) section.

<img src="https://mintcdn.com/wherobots/AayJA2u8CknIeTgt/images/sql-functions/RS_ScaleY/RS_ScaleY.svg?fit=max&auto=format&n=AayJA2u8CknIeTgt&q=85&s=31f42a5c504ef6496834fa43cc5d5b00" alt="RS_ScaleY" width="580" height="340" data-path="images/sql-functions/RS_ScaleY/RS_ScaleY.svg" />

## Signatures

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

## Parameters

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

## Return type

<ResponseField type="Double">
  A numeric value.
</ResponseField>

## Example

```sql theme={"system"}
SELECT RS_ScaleY(raster) FROM rasters
```

```
-2
```
