zonal_statistics
Calculate raster statistics within polygon zones to analyze geospatial data relationships between raster and vector datasets.
Instructions
Calculate statistics of raster values within polygons (zonal statistics). Args: raster_path: Path to the raster file. vector_path: Path to the vector file (polygons). stats: List of statistics to compute (e.g., ["mean", "min", "max", "std"]). Returns: Dictionary with status, message, and statistics per polygon.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raster_path | Yes | ||
| vector_path | Yes | ||
| stats | No |