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

Returns a point geometry of the specified pixel's upper-left corner. The pixel coordinates specified are 1-indexed.

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

<Note>
  If the pixel coordinates specified do not exist in the raster (out of bounds), RS\_PixelAsPoint throws an IndexOutOfBoundsException.
</Note>

## Signatures

```sql theme={"system"}
RS_PixelAsPoint(raster: Raster, colX: Integer, rowY: Integer)
```

## Parameters

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

<ParamField body="colX" type="Integer" required>
  The col x value.
</ParamField>

<ParamField body="rowY" type="Integer" required>
  The row y value.
</ParamField>

## Return type

<ResponseField type="Geometry">
  The resulting geometry.
</ResponseField>

## Examples

```sql theme={"system"}
SELECT ST_AsText(RS_PixelAsPoint(raster, 2, 1)) from rasters
```

```
POINT (123.19, -12)
```

```sql theme={"system"}
SELECT ST_AsText(RS_PixelAsPoint(raster, 6, 2)) from rasters
```

```
IndexOutOfBoundsException: Specified pixel coordinates (6, 2) do not lie in the raster
```
