Overlay analysis with intersection, union and difference
Combine two polygon layers geometrically: intersection keeps shared areas with the attributes of both, union keeps everything, difference erases one layer from another.
You will learn
- Run intersection, union and difference overlays.
- Understand which attributes each overlay keeps.
- Summarise an overlay result by group.
Data for this tutorial
Land use 2019 and 2024 (synthetic) Download landuse_2024.geojson
- Format
- GeoJSON (also landuse_2019.geojson)
- Geometry
- Polygon
- CRS
- EPSG:32643 (WGS 84 / UTM zone 43N)
- Content
- 61 polygons (2024), 50 polygons (2019)
- In Orbis
- Browser panel ▸ Tutorial sample data (synthetic) ▸ Land use 2024, or Load complete tutorial pack.
Fields used in the tutorials
| Field | Type | Description |
|---|---|---|
lu_id | text | Polygon identifier. |
class | text | built-up, cropland, forest, water or scrub. |
code | integer | Class code 1 to 5. |
year | integer | 2019 or 2024. |
area_ha | real | Ellipsoidal area in hectares. |
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. |
Licence: CC0 1.0. All tutorial data is synthetic and generated by Orbis. About the datasets
The task
You want to know how much of each land-use class lies in each zone (urban, peri-urban, rural). An intersection cuts the land-use polygons along the ward boundaries, so that every piece knows both its class and its ward.
Steps
- Add Land use 2024 and Wards from the tutorial data.
In the Toolbox, open Intersection. Choose Land use 2024 (synthetic) as Input layer and Wards (synthetic) as Overlay layer. Click Run.

Land use intersected with the wards.
- The new layer has 203 pieces with the land-use fields (
lu_id,class,code,year,area_ha) and the ward fields (ward_id,ward_name,zone, …). The oldarea_hais the area of the whole original polygon, so run Calculate area on the result (field namepiece_ha, Hectares).
- Summarise with Aggregate (group and summarize): group by
zoneandclass, and add Sum ofpiece_ha. You get the hectares of every land-use class in every zone.
The other overlays:
- Union (overlay) keeps all areas of both layers: shared parts with both attribute sets, the rest with one set and NULL for the other.
- Difference (erase) removes the overlay polygons from the input. Use it to find, for example, land outside a protected area.
- Symmetrical difference keeps the areas covered by exactly one of the two layers.
Expected result
An intersection layer with 203 features carrying both land-use and ward attributes, and a summary table of hectares by zone and class.
Common mistakes
- Using stale areas. Area fields copied from the input describe the original polygon, not the piece. Recalculate after an overlay.
- Overlapping polygons within one layer. Union assumes each layer has no self-overlaps; check with Find overlapping features.
Troubleshooting
- The overlay layer must be polygons. Lines and points can be the input of Intersection and Difference, but not the overlay.
- Layers in different CRSs. The overlay layer is transformed to the input CRS on the fly; the processing log records it.