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

Returns the Y coordinate of the grid coordinate of the given world coordinates as an integer.

<img src="https://mintcdn.com/wherobots/AayJA2u8CknIeTgt/images/sql-functions/RS_WorldToRasterCoordY/RS_WorldToRasterCoordY.svg?fit=max&auto=format&n=AayJA2u8CknIeTgt&q=85&s=2ee81fc63bdac93d0930ae797312b0d4" alt="RS_WorldToRasterCoordY" width="620" height="360" data-path="images/sql-functions/RS_WorldToRasterCoordY/RS_WorldToRasterCoordY.svg" />

## Signatures

```sql theme={"system"}
RS_WorldToRasterCoordY(raster: Raster, point: Geometry)
```

```sql theme={"system"}
RS_WorldToRasterCoordY(raster: Raster, x: Double, y: Double)
```

## Parameters

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

<ParamField body="x" type="Double">
  The X coordinate (longitude).
</ParamField>

<ParamField body="y" type="Double">
  The Y coordinate (latitude).
</ParamField>

<ParamField body="point" type="Geometry">
  The point value.
</ParamField>

## Return type

<ResponseField type="Integer">
  An integer value.
</ResponseField>

## Examples

```sql theme={"system"}
SELECT RS_WorldToRasterCoordY(ST_MakeEmptyRaster(1, 5, 5, -53, 51, 1, -1, 0, 0), ST_GeomFromText('POINT (-50 50)'));
```

```
2
```

```sql theme={"system"}
SELECT RS_WorldToRasterCoordY(ST_MakeEmptyRaster(1, 5, 5, -53, 51, 1, -1, 0, 0), -50, 49);
```

```
3
```

<Tip>
  For non-skewed rasters, you can provide any value for longitude and the intended value of world latitude, to get the desired answer
</Tip>
