Skip to main content
Glama

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
NameRequiredDescriptionDefault
raster_pathYes
vector_pathYes
statsNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mahdin75/gis-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server