Sample Raster Values
sample_raster_valuesSample pixel values from a raster layer at given point coordinates. Optionally specify a band; otherwise all bands are sampled.
Instructions
Sample raster pixel values at points. 'points' is a list of [x, y] in the raster's CRS. Omit 'band' to sample all bands. Use transform_coordinates first if your points are in a different CRS.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"raster_layer": "<raster_layer>",
"points": "<points>"
},
"name": "sample_raster_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| band | No | ||
| points | Yes | ||
| raster_layer | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||