zonal_statistics
Summarize raster values inside zone polygons to produce a statistics table for spatial analysis. Requires the Spatial Analyst extension.
Instructions
Summarise raster values inside zone polygons and return the table. Requires the Spatial Analyst extension.
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": {
"zone_layer": "<zone_layer>",
"zone_field": "<zone_field>",
"raster_layer": "<raster_layer>"
},
"name": "zonal_statistics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| map_name | No | Map to act on; defaults to the active map. | |
| zone_field | Yes | Field identifying each zone. | |
| zone_layer | Yes | Polygon layer defining the zones. | |
| output_table | No | Where to write the statistics table. | |
| raster_layer | Yes | Raster to summarise. | |
| ignore_nodata | No | DATA or NODATA. | DATA |
| statistics_type | No | ALL, MEAN, SUM, MINIMUM, MAXIMUM, MEDIAN, MAJORITY, ... | ALL |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |