Practical GIS projects

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.

Intermediate2 min read

You will learn

  • Count points in polygons.
  • Filter and summarise the counts.
  • Normalise counts by population.

Prerequisites

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
FieldTypeDescription
ward_idtextWard code W01 to W84.
ward_nametextWard name.
zonetexturban, peri-urban or rural.
populationintegerResidents.
householdsintegerHouseholds.
area_km2realEllipsoidal area in km².
density_km2realPersons per km².
literacy_raterealLiterate 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
FieldTypeDescription
facility_idtextF001 to F097.
nametextFacility name.
categorytexthealth or education.
typetexthospital, health_centre, clinic, school or college.
ownershiptextpublic or private.
capacityintegerBeds or students.
openedintegerYear 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

  1. Add Wards and Facilities from Browser ▸ Tutorial sample data (synthetic).
  1. In the Toolbox, open Count points in polygon. Choose Wards (synthetic) as Polygons and Facilities (synthetic) as Points, keep Count field name NUMPOINTS and click Run. A layer Point counts (Wards (synthetic)) is added.
  1. Style it by NUMPOINTS with Graduated classes, and sort the attribute table by NUMPOINTS.

    Wards coloured by the number of facilities they contain, with the facilities on top
    Facilities per ward.

2. Wards without facilities

  1. Use Select by attribute on the counts layer with NUMPOINTS = 0. The selection summary shows how many wards have none.

3. Compare zones

  1. Click Group and summarize on the counts layer. Group by zone and add Count records (wards), Sum of NUMPOINTS (facilities), Sum of population and Maximum of NUMPOINTS. Click Run.
  1. Divide facilities by population and multiply by 10,000 for the rate.

Expected result

zonewardsfacilitiespopulationmost in one wardwards with noneper 10,000 residents
peri-urban311994,9525232.00
rural19524,2002152.07
urban3473214,3459113.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 zone and category; see Spatial joins.