Sample Raster Values
sample_raster_valuesExtract raster pixel values at specified [x, y] points, optionally reprojected to a CRS and sampled across all bands or one band.
Instructions
Sample raster pixel values at points. 'points' is a list of [x, y] in crs when given (reprojected to the raster), else in the raster's CRS. Omit 'band' to sample all bands. A null value is nodata when outside_extent is false; outside_extent true means the point is off the raster (often a CRS mix-up); transform_failed marks a point the raster's CRS cannot express.
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 |
|---|---|---|---|
| crs | No | ||
| band | No | ||
| points | Yes | ||
| raster_layer | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||