Lesson 4.2Lesson 4.2 · Vector Spatial Analysis
Overlay: Clip, Intersect, Union
Making two layers answer a question neither can alone
One layer says where it floods. Another says where you may build. You need where both are true.
You have a flood-risk layer and a zoning layer for the same neighbourhood. Separately, each is just a coloured map. The question the client is actually paying for - which buildable plots also flood? - lives in neither layer. It lives in the place where they overlap. Overlay is the operation that finds that place, cuts it out, and hands it back to you as a new layer carrying the attributes of both. It is the analytical heart of this whole module.
Every suitability map you will ever make is McHarg's light table with better bookkeeping.
Overlay is set arithmetic on shapes
Think back to the layer cake from Module 0. Overlay is what happens when you stop merely stacking layers and start cutting them against each other. Every overlay operation is really a set operation - the same AND, OR and NOT logic you know from Venn diagrams - applied to geometry and attributes at once.
There are a handful you will use constantly:
- Clip - use one layer as a cookie-cutter to trim another to a boundary. Keeps geometry from the first, discards everything outside the second. (Attributes of the cutter are not carried over.) - Intersect - keep only the area where two layers overlap, and carry the attributes of both. This is the workhorse. - Union - keep everything from both layers, splitting them where they cross, so every resulting piece knows which inputs it came from. - Difference (erase) - keep the part of one layer that is not covered by the other.
The trick is not running the tool - it is choosing the right verb for the question.
Clip changes shape but not the story; intersect changes both. Know which you meant.
Clip versus intersect: the distinction that trips everyone
Clip and intersect produce the same shape - the overlapping area - which is exactly why they get confused. The difference is the attributes.
Clip is spatial trimming. You have a roads layer covering a whole district and a study-area polygon; clip the roads to the study area and you get just the roads inside it, still carrying only the roads' own columns. The study-area polygon was a stencil, nothing more.
Intersect is a spatial join by geometry. Overlay flood zones with plots using intersect and each resulting sliver carries both the plot's columns and the flood zone's columns. Now you can filter for flood_risk = high AND land_use = residential in one table. If your next step needs data from both layers, you wanted intersect. If you only needed to cut one layer to a boundary, clip is cleaner and faster.
Union, difference and dissolve
Union is the generous one: it keeps every part of both inputs and splits them wherever they cross, tagging each piece with the attributes of whichever inputs cover it (and nulls where one does not). Use it when you are building a composite in which no area may be lost - a full land budget where every square metre must be accounted for.
Difference (called Erase in ArcGIS) removes the overlap: give it plots and a lakes layer and it hands back the dry land only. It is how you subtract the un-buildable from the buildable.
Dissolve is the tidy-up you will reach for after almost every overlay. Overlay tends to shatter your data into many small slivers; dissolve merges adjacent features that share a chosen attribute value back into single polygons - all the 'residential' fragments into one residential region. It is aggregation by attribute, and it turns a messy result into a clean, mappable one.
A practical warning about overlay outputs: watch for sliver polygons - hair-thin scraps produced where the edges of two layers nearly, but not exactly, coincide. They are the classic symptom of overlaying data digitised at different scales or from different sources (a Survey of India sheet against an OSM extract, say). Slivers inflate your feature count, distort area totals and clutter the map. The cure is partly upstream - clean topology and a shared CRS before you overlay, from Module 3 - and partly downstream: dissolve, or filter out features below a minimum area threshold. A good analyst inspects the attribute table and the smallest features after every overlay rather than trusting the output blind.
After any overlay, ask: do I have slivers? Then dissolve by the column that matters.
The McHarg lineage: why overlay is the oldest idea in the room
None of this began with software. In 1969, the landscape architect Ian McHarg published Design with Nature and described drawing each site constraint - slope, drainage, soils, ecology, scenic value - on a separate sheet of transparent paper, shading the unsuitable areas darkest. Stack the sheets on a light table and the darkest patches were where the most constraints piled up: the places to avoid. The clear patches were where to build. This 'sieve mapping' is manual overlay, and it is the direct ancestor of every suitability analysis a GIS runs today.
What the computer added was not the idea but the bookkeeping: it can overlay dozens of layers exactly, weight them, and recompute in seconds when a number changes. Jerome Dobson and later Jerome Malczewski formalised how you combine and weight the layers into land-use suitability. When you run an intersect-and-score workflow in Module 5's AHP suitability lesson, you are drawing McHarg's tracing paper - just faster, and honest about your weights.
Overlay is 55 years old. The GIS just stopped you cutting tracing paper with a scalpel.
NRSC National LULC (ISRO)
India land-use / land-cover polygons
A ready constraint/context layer to intersect against your plots or study area. Free thematic layers via NRSC/Bhuvan under the NRSC data policy.
OpenStreetMap (OSM)
Global vector map - land use, water, roads
Free under the ODbL. A quick source of the water bodies, land-use polygons and boundaries you will clip, intersect and difference in a workshop.
OGC GeoPackage
Open single-file container for many vector layers
Store all overlay inputs and outputs in one .gpkg so the layers travel together in a single, portable file - ideal before a multi-layer overlay.
EPSG:32644
WGS 84 / UTM zone 44N - projected metre CRS
Overlay demands that all inputs share ONE CRS; align every layer to a common projected system (a UTM zone or EPSG:7755) before you intersect, or areas and edges will be wrong.
Workshop - which residential plots also flood?
You will overlay a hazard layer with a land-use or plots layer to isolate the parcels that are both buildable and at risk - the classic overlay question, and one every authority understands.
QGIS 3.44 or ArcGIS Pro 3.7; a plots/LULC layer + a hazard-zone layer; a common projected CRS.
Given: a plots (or LULC) layer + a flood/hazard-zone polygon layer for the same area CRS: reproject BOTH to one common UTM zone (e.g. EPSG:32644) Goal: a single layer of plots that fall in the hazard zone, carrying both sets of attributes
- 1Confirm a shared CRS. In QGIS: check each layer's CRS at bottom-right and reproject with Export, Save Features As if they differ; in ArcGIS Pro: Analysis, Tools, Project. Overlay of layers in different CRSs is the number-one cause of wrong results.
- 2Clip first (optional). Trim both layers to your study-area boundary. In QGIS: Vector, Geoprocessing Tools, Clip. In ArcGIS Pro: Analysis, Tools, Clip. This keeps the job fast and the output tidy.
- 3Intersect the two layers. In QGIS: Vector, Geoprocessing Tools, Intersection. In ArcGIS Pro: Analysis, Tools, Overlay, Intersect. Open the attribute table of the result and confirm it now holds columns from BOTH inputs.
- 4Filter and quantify. Select by expression for the combination you care about (e.g. land_use = 'residential'), and use the field calculator or a metre CRS to compute the affected area per parcel.
- 5Dissolve to report. In QGIS: Processing, Dissolve by land_use; in ArcGIS Pro: Analysis, Tools, Dissolve. You now have one clean polygon per class and a total at-risk area to present.
You’ll walk away with
A single overlay layer of at-risk parcels carrying both layers' attributes, plus a dissolved summary of total affected area by land-use class - the exact evidence a plan review asks for.
Three altitudes on the same idea
Read the band that fits you — or all three.
Overlay is how you assemble a site's buildable envelope. Take the plot, difference out the setback buffers, the drainage strip and the tree-protection zones, intersect what remains with the developable-slope band, and you are left with the polygon where a building can actually go - dimensioned and defensible. Every 'you can't build there' becomes a shape, not an argument.
Overlay turns separate statutory layers into one decision surface. Intersect land use with flood zones, hazard lines and infrastructure coverage and you can report exactly which parcels are both zoned residential and at risk, or both un-served and dense. This is the analytical spine of a Development Plan or CDP - and the AMRUT GIS master-plan programme exists precisely so these layers are ready to overlay.
Overlay lets you carve the public realm out of everything that competes for it. Union the footpath, carriageway, parking and setback layers to see how a street's cross-section is really allocated, then difference out what pedestrians never reach. It converts a vague sense that 'the street is car-dominated' into an area budget you can redraw and defend.
“Clip and intersect are the same tool with two names - pick whichever.”
Do it yourself
No software needed - just pick the right verb.
- 1For each question, name the overlay you would use: (a) roads inside my ward only; (b) plots that are both commercial and within a heritage zone; (c) developable land with the lake removed.
- 2You intersect two layers and the output has thousands of tiny slivers. What single tool cleans this up, and by which attribute would you run it?
- 3Explain in one sentence why clip loses the second layer's attributes but intersect keeps them.
- 4Sketch McHarg's tracing-paper method for three constraints on a site you know. Which patch would end up darkest, and why would you avoid it?
The one line to carry out
Peer-reviewed journals & authoritative standards
- 01McHarg, I.L. - Design with Nature — Wiley (25th Anniversary reissue), 1969.
- 02Malczewski, J. - GIS-based land-use suitability analysis: a critical overview — Progress in Planning, 2004.
- 03Tomlin, C.D. - GIS and Cartographic Modeling — Esri Press, 2012.
- 04de Smith, M.J., Goodchild, M.F. & Longley, P.A. - Geospatial Analysis: A Comprehensive Guide, 7th ed. — Winchelsea Press, 2025.
Overlay builds new geometry to answer a question. Often, though, you just want to select features that already exist - by what they are, or by where they sit. That is querying, and it is next.
The author
Amogh N P
Architect, interior designer, and creative polymath. Studio Matrx began in his notebooks — his vision of design made honest, useful, and open to everyone. Its Academy is written and taught in his memory, and free, forever.
More about Amogh →