Project: health and education facilities per ward
A complete exercise with points and polygons. Count facilities in every ward, find wards without any, and compare facilities per 10,000 residents across zones.
You will learn
- Count points in polygons.
- Filter and summarise the counts.
- Normalise counts by population.
Data for this tutorial
Wards (synthetic) Download wards.geojson
- Format
- GeoJSON
- Geometry
- Polygon
- CRS
- EPSG:32643 (WGS 84 / UTM zone 43N)
- Content
- 84 wards (31 peri-urban, 19 rural, 34 urban), 333,497 residents
- In Orbis
- Browser panel ▸ Tutorial sample data (synthetic) ▸ Wards, or Load complete tutorial pack.
Fields used in the tutorials
| Field | Type | Description |
|---|---|---|
ward_id | text | Ward code W01 to W84. |
ward_name | text | Ward name. |
zone | text | urban, peri-urban or rural. |
population | integer | Residents. |
households | integer | Households. |
area_km2 | real | Ellipsoidal area in km². |
density_km2 | real | Persons per km². |
literacy_rate | real | Literate share, per cent. |
Facilities (synthetic) Download facilities.geojson
- Format
- GeoJSON
- Geometry
- Point
- CRS
- EPSG:32643 (WGS 84 / UTM zone 43N)
- Content
- 97 points: 3 hospitals, 6 health centres, 26 clinics, 58 schools, 4 colleges
- In Orbis
- Browser panel ▸ Tutorial sample data (synthetic) ▸ Facilities, or Load complete tutorial pack.
Fields used in the tutorials
| Field | Type | Description |
|---|---|---|
facility_id | text | F001 to F097. |
name | text | Facility name. |
category | text | health or education. |
type | text | hospital, health_centre, clinic, school or college. |
ownership | text | public or private. |
capacity | integer | Beds or students. |
opened | integer | Year opened. |
Licence: CC0 1.0. All tutorial data is synthetic and generated by Orbis. About the datasets
The task
The health and education departments want to know which wards are well served. You will count the facilities in each ward, list the wards without any, and compare zones by facilities per 10,000 residents.
Steps
1. Count facilities per ward
- Add Wards and Facilities from Browser ▸ Tutorial sample data (synthetic).
- In the Toolbox, open Count points in polygon. Choose Wards (synthetic) as Polygons and Facilities (synthetic) as Points, keep Count field name
NUMPOINTSand click Run. A layer Point counts (Wards (synthetic)) is added.
Style it by
NUMPOINTSwith Graduated classes, and sort the attribute table byNUMPOINTS.
Facilities per ward.
2. Wards without facilities
- Use Select by attribute on the counts layer with
NUMPOINTS=0. The selection summary shows how many wards have none.
3. Compare zones
- Click Group and summarize on the counts layer. Group by zone and add Count records (
wards), Sum ofNUMPOINTS(facilities), Sum ofpopulationand Maximum ofNUMPOINTS. Click Run.
- Divide facilities by population and multiply by 10,000 for the rate.
Expected result
| zone | wards | facilities | population | most in one ward | wards with none | per 10,000 residents |
|---|---|---|---|---|---|---|
| peri-urban | 31 | 19 | 94,952 | 5 | 23 | 2.00 |
| rural | 19 | 5 | 24,200 | 2 | 15 | 2.07 |
| urban | 34 | 73 | 214,345 | 9 | 11 | 3.41 |
All 97 facilities fall in a ward; 49 of the 84 wards have none. Ward W37 (urban) has the most, 9. Run Aggregate with Only records where "NUMPOINTS" = 0 to get the "wards with none" column.
Common mistakes
- Counting by attribute instead of location. The facilities layer has no ward field; their ward follows from their position. Use a spatial tool.
- Comparing raw counts. Urban wards have more facilities but also more residents. Compare rates.
Troubleshooting
- All counts are 0. The layers do not overlap, or Selected features only is ticked with nothing selected.
- You need counts by category. Use Join attributes by location from facilities to wards, then Aggregate grouped by
zoneandcategory; see Spatial joins.