Dominant Overlap Join
QGIS 3.28+ · Qt5 and Qt6Processing algorithmEnglish · Português · EspañolGPL-2.0

Dominant Overlap Join

Copies the input polygons and adds the attribute of the overlay polygon with the largest intersection area, the percentage of the polygon it covers and a status for ties and polygons without intersection.

⬇ Install the plugin ★ Source on GitHub
Synthetic parcels coloured by the zoning zone that covers most of each one; dashed lines are the zone borders and hatched parcels are covered less than 60 % by their winning zone.
Synthetic data in SIRGAS 2000 / UTM 25S, made with the plugin itself.

Overview

Attribute transfer by largest intersection area

One value per input polygon, taken from the overlay feature with the largest intersection area. Features are never duplicated.

📐

Correct areas in any CRS

Areas follow the project's measurement settings and are never compared in square degrees; the overlay is reprojected to the input CRS.

⚖️

Ties are ties

Near-equal intersections, within a tolerance you control, give empate instead of a coin toss. Never exact float equality.

🛡️

Validates, never repairs

Invalid geometries in either layer stop the run, listing each feature id and the reason. Your layers are never modified.

⚡

Fast and non-blocking

Spatial index and prepared geometries; runs in the background with progress, cancel, batch mode, models and processing.run.

No minimum coverage. The largest intersection wins even when it is small (15 % beats 10 %). Use dom_pct to find these cases; the log reports how many features are covered less than 50 %.
Left: parcels over coloured zoning zones. Right: the same parcels coloured by the zone that covers most of each one, with the zone borders dashed; parcels on the right edge, outside the zoning, are grey.
Left: parcels (input) over zoning (overlay). Right: output coloured by the transferred zone; hatched: coverage below 60 %; grey: sem_intersecao.

Typical uses

Install

Installation

Only QGIS is needed: no extra Python library.

  1. From the plugin repository

    Plugins → Manage and Install Plugins → All, search for Dominant Overlap Join and click Install Plugin.

  2. Or from a ZIP file

    Download a ZIP from the releases and use Plugins → Manage and Install Plugins → Install from ZIP.

  3. Find it

    Vector → Dominant Overlap Join, the toolbar button, or the Processing Toolbox (Ctrl+Alt+T) → Dominant Overlap Join.

Requirements

  • QGIS 3.28 or later (tested on 3.34, the current LTR and 3.44), Qt5 or Qt6
  • Two polygon layers (any format QGIS reads) with a CRS — or both without one

Quick start

Five steps

Standard Processing dialog: selected features only, temporary or file output and batch mode are available.

  1. Input layer

    The polygons that will be copied to the output (e.g. parcels). Only polygon layers are listed.

  2. Overlay layer

    The polygons that provide the attribute (e.g. zoning).

  3. Field

    The overlay field to transfer. Optionally give the new field another name.

  4. Tie tolerance

    Keep 0.001 unless you want near-equal shares to count as a tie (see the rule).

  5. Output and Run

    Temporary layer or a file (GeoPackage, shapefile…). The result is loaded coloured by status; the Log tab ends with a summary.

The algorithm dialog with input layer parcels, overlay layer zoning, field zone, tie tolerance 0.001 and a temporary output, next to the built-in help.
The algorithm dialog, with the built-in help on the right.

What the log says

Area measurement: ellipsoidal areas on EPSG:7019 — ellipsoid of the project.
Validating geometries…
Indexing the overlay layer…
Measuring intersections…

Summary: 336 assigned, 0 tie(s), 18 without intersection, 0 without geometry.
1 assigned feature(s) are covered less than 50 % by the winner (smallest coverage: 47.14 %). The largest intersection wins even when it is small: check the 'dom_pct' field.

The rule

How the winner is chosen

For each input polygon of area A, the intersection area with each overlay polygon is measured. Then:

1

Largest intersection wins

The overlay polygon with the largest intersection gives its value; dom_pct = 100 × intersection / A.

2

Near-equal is a tie

If the two largest differ by no more than the tolerance, the status is empate and no value is transferred.

3

Slivers are not overlaps

Intersections smaller than the tolerance (polygons that only share a border) are ignored. Nothing left → sem_intersecao.

The tie tolerance

In percentage points of the input polygon's area, independent of units and size. Two intersections tie when their areas differ by at most tolerance % of A; 10−12 × A is always added, so floating-point values are never compared for exact equality. Default 0.001 (1/100 000 of the area, 0.1 m² for 1 ha): covers rounding and the ≈10−7 difference an ellipsoid introduces between halves that are symmetric in a projected CRS.

Try it

Each slider is the share of the input polygon covered by one overlay polygon. Same rule as the plugin.

Examples:

not covered:

Result

dom_status
Transferred value
dom_pct

Output

The output layer

Input geometry and attributes plus three fields. Source layers are not modified.

FieldContent
transferred valueNamed after the overlay field (or as chosen). Same type as the overlay field. Filled only when the status is atribuido; a NULL in the winner stays NULL.
dom_pctPercentage of the input polygon covered by the winner (0–100). Filled only when atribuido.
dom_statusOne of the four codes below.
dom_statusWhen
atribuidoOne overlay polygon has the largest intersection.
empateTwo or more overlay polygons tie for the largest intersection.
sem_intersecaoNo intersection with positive area (no overlap, or only touching).
sem_geometriaThe input feature has no geometry, or an empty one.
The codes are fixed (in Portuguese, never translated), so expressions such as "dom_status" = 'empate' work in any QGIS language.

Field names

New fields never overwrite input fields: on a clash a suffix is added (zone → zone_1, case-insensitive). Shapefile: names cut to 10 ASCII characters. Renamed fields are reported in the log.

From Python, models and batch mode

The algorithm id is dominant_overlap:join. It also returns the counts of each status.

import processing

result = processing.run("dominant_overlap:join", {
    "INPUT": "C:/data/city.gpkg|layername=parcels",    # features copied to the output
    "OVERLAY": "C:/data/city.gpkg|layername=zoning",   # provides the attribute
    "FIELD": "zone",                                   # overlay field to transfer
    "TIE_TOLERANCE": 0.001,                            # percentage points of the input area
    "FIELD_NAME": "",                                  # empty: same name as the overlay field
    "OUTPUT": "C:/data/parcels_zone.gpkg",
})
print(result["ASSIGNED"], result["TIES"], result["NO_INTERSECTION"], result["NO_GEOMETRY"])

Areas & CRS

Areas you can trust, in any CRS

Intersections are computed in the input layer's CRS (the overlay is reprojected). Areas are measured with QgsDistanceArea following the project's measurement settings, like $area:

Project ellipsoidInput CRSAreas
an ellipsoid (e.g. WGS 84, GRS 80)anyellipsoidal, on that ellipsoid
None / Planimetricprojected (metres, feet)planar, in the CRS units
None / Planimetricgeographic (degrees)ellipsoidal, on the CRS ellipsoid — square degrees are never compared
—neither layer has a CRSplanar, same unknown units (warning)
QGIS only reports the project ellipsoid when the project has a CRS. The method used is written in the log.

Example: at 60° N, a 2°-tall polygon split at 61° has two halves of equal planar area in degrees, but the southern half is 50.8 % of it on the ellipsoid. The plugin gives it to the southern zone.

If only one of the layers has a CRS the run is refused: the coordinates could not be related. Set it in Layer Properties → Source.

Validation

Validated before anything is written

Both layers are checked with GEOS (same test as Check Validity), regardless of the Processing setting Invalid features filtering.

CaseWhat happens
Invalid geometry or not a polygon (either layer)The run stops before creating the output. The message lists, per layer, the feature ids ($id, the fid in a GeoPackage) and the reason. Nothing is repaired — use Fix Geometries yourself if appropriate.
Input feature without geometry or emptyCopied with sem_geometria.
Overlay feature without geometryIgnored and counted in the log.
Multipart featuresHandled as a whole: their parts are added up.
Line or point layerRefused with a clear message.

Example message

Invalid geometries found: nothing was written. Fix them (e.g. with
Vector > Geometry Tools > Fix Geometries or Check Validity) and run again.
Input layer 'parcels': 1 feature(s) — feature ids: 2
  • id 2: Self-intersection

Help

Troubleshooting

Each entry gives the likely cause and what to do.

“Invalid geometries found: nothing was written”

Cause: One or both layers have self-intersections, bad rings or non-polygon geometries.

What to do: Look at the ids in the message (and the full list in the log), run Vector → Geometry Tools → Check Validity, then fix them — e.g. with Fix Geometries — into a new layer and run again.

A parcel got a zone that covers only a small part of it

Cause: By design there is no minimum coverage: the largest share wins.

What to do: Filter "dom_pct" < 50 (or your own threshold) and review those features.

I expected a tie but got atribuido (or the opposite)

Cause: The two shares differ by more (or less) than the tie tolerance. With an ellipsoid, halves symmetric in a projected CRS differ by about 10−7 of the area.

What to do: Look at dom_pct and adjust the tolerance (percentage points of the input area).

The new field is called zone_1

Cause: The input layer already has a field with that name (case-insensitive), or the shapefile limit of 10 characters made two names equal.

What to do: Choose another name in Name of the new field; the log lists every renamed field.

“… has no coordinate reference system (CRS)”

Cause: Only one of the two layers has a CRS.

What to do: Set the missing CRS in Layer Properties → Source.

“overlay feature(s) could not be transformed”

Cause: Some overlay coordinates are outside the area of use of the input CRS.

What to do: Check the CRS of both layers, or reproject the input layer to a CRS that covers both.

Two overlay polygons with the same value did not add up

Cause: The rule is per feature: each overlay polygon competes on its own.

What to do: If you want shares per value, Dissolve the overlay layer by that field first.

Found a bug? Open an issue with the text of the Log tab, the QGIS version and, if possible, a small GeoPackage with the two layers.

About the author

Photo of Marcello Benigno

Marcello Benigno

He holds a master's degree in Geodetic Sciences and Geoinformation Technologies from the Federal University of Pernambuco (UFPE), a specialisation in Web Programming and a degree in Civil Engineering from the Federal University of Campina Grande (UFCG).

A lecturer at the Federal Institute of Paraíba (IFPB) for more than 20 years, he trains professionals in Geoprocessing and develops technological solutions for the analysis and management of geospatial data.

He has experience developing Geographic Information Systems (GIS) and WebGIS applications, designing and administering spatial databases, and automating geoprocessing workflows. He works mainly with open source technologies, integrating tools such as QGIS, PostgreSQL/PostGIS, GeoServer, Python and JavaScript.

Other plugins by the author