sample_raster_values
Read raster cell values at map coordinates or point layer features to inspect pixel data for GIS analysis.
Instructions
Read raster cell values at map coordinates or at a point layer's features.
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": {
"layer_name": "<layer_name>"
},
"name": "sample_raster_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| band | No | Band to read for multiband rasters. | |
| limit | No | Maximum points to sample from a layer. | |
| points | No | Coordinates to sample, e.g. [{"x": 100.5, "y": 13.7}]. | |
| map_name | No | Map to act on; defaults to the active map. | |
| layer_name | Yes | Layer or table name as shown by get_layers, or a full dataset path. | |
| point_layer | No | Point layer to sample at instead. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |