query_layer
Run an attribute query on Yerevan GIS layers and get rows as JSON. Filter with a SQL where clause, or dump an entire table with automatic pagination.
Instructions
Run an attribute query against any layer and get rows back as JSON. This is the workhorse: set where='1=1' to dump a whole table (paginated automatically), or a SQL where clause to filter. Geometry is off by default; set return_geometry=true to get WGS84 lat/lon. Armenian category values are free text (no coded domains) — use get_distinct_values to discover exact spellings. Numeric air-quality metrics are sometimes stored as strings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows to return (auto-paginated) | |
| where | No | SQL where clause, e.g. "cmm_cc='005'" or "code LIKE '01-001%'". Default 1=1 (all rows). | 1=1 |
| offset | No | ||
| layer_id | No | ||
| order_by | No | e.g. 'objectid DESC' | |
| layer_key | No | Curated key from search_layers | |
| out_fields | No | Comma-separated field names, or * for all | * |
| service_path | No | ||
| return_geometry | No |