aggregate
Compute server-side statistics (count, min, max, avg, sum) on Yerevan GIS layers, optionally grouped by a field, to avoid pulling raw rows.
Instructions
Server-side aggregation (count/min/max/avg/sum), optionally grouped by a field — e.g. count parcels per district, average sensor AQI, max reading date. Cheaper and more precise than pulling rows and summing client-side.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Field to aggregate (any field for count) | |
| where | No | 1=1 | |
| group_by | No | Optional field to group by | |
| layer_id | No | ||
| order_by | No | ||
| layer_key | No | ||
| stat_type | Yes | ||
| service_path | No |