Vector processing

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.

Intermediate2 min read

You will learn

  • Run intersection, union and difference overlays.
  • Understand which attributes each overlay keeps.
  • Summarise an overlay result by group.

Prerequisites

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
FieldTypeDescription
lu_idtextPolygon identifier.
classtextbuilt-up, cropland, forest, water or scrub.
codeintegerClass code 1 to 5.
yearinteger2019 or 2024.
area_harealEllipsoidal 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
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.

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

  1. Add Land use 2024 and Wards from the tutorial data.
  1. In the Toolbox, open Intersection. Choose Land use 2024 (synthetic) as Input layer and Wards (synthetic) as Overlay layer. Click Run.

    The intersection of land use and wards: land-use polygons cut along ward boundaries
    Land use intersected with the wards.
  1. 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 old area_ha is the area of the whole original polygon, so run Calculate area on the result (field name piece_ha, Hectares).
  1. Summarise with Aggregate (group and summarize): group by zone and class, and add Sum of piece_ha. You get the hectares of every land-use class in every zone.
  1. 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.