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

Returns the value at the given point in the raster. If no band number is specified it defaults to 1.

<Note>
  Since `v1.5.1`, if the coordinate reference system (CRS) of the input `point` geometry differs from that of the `raster`, then `point` will be transformed to match the CRS of the `raster`. If the `raster` or `point` doesn't have a CRS then it will default to `4326/WGS84`.
</Note>

## Signatures

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

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

```sql theme={"system"}
RS_Value (raster: Raster, colX: Integer, colY: Integer, band: Integer)
```

## Parameters

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

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

<ParamField body="colY" type="Integer">
  The col y value.
</ParamField>

<ParamField body="band" type="Integer">
  The band index.
</ParamField>

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

## Return type

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

## Examples

```sql theme={"system"}
SELECT RS_Value(raster, ST_Point(-13077301.685, 4002565.802)) FROM raster_table
```

* For Grid Coordinates:

```sql theme={"system"}
SELECT RS_Value(raster, 3, 4, 1) FROM raster_table
```

```
5.0
```
