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
Overview
One value per input polygon, taken from the overlay feature with the largest intersection area. Features are never duplicated.
Areas follow the project's measurement settings and are never compared in square degrees; the overlay is reprojected to the input CRS.
Near-equal intersections, within a tolerance you control, give empate instead of a coin toss. Never exact float equality.
Invalid geometries in either layer stop the run, listing each feature id and the reason. Your layers are never modified.
Spatial index and prepared geometries; runs in the background with progress, cancel, batch mode, models and processing.run.
dom_pct to find these cases; the log reports how many features are covered less than 50 %.
sem_intersecao.Install
Only QGIS is needed: no extra Python library.
Plugins → Manage and Install Plugins → All, search for Dominant Overlap Join and click Install Plugin.
Download a ZIP from the releases and use Plugins → Manage and Install Plugins → Install from ZIP.
Vector → Dominant Overlap Join, the toolbar button, or the Processing Toolbox (Ctrl+Alt+T) → Dominant Overlap Join.
Quick start
Standard Processing dialog: selected features only, temporary or file output and batch mode are available.
The polygons that will be copied to the output (e.g. parcels). Only polygon layers are listed.
The polygons that provide the attribute (e.g. zoning).
The overlay field to transfer. Optionally give the new field another name.
Keep 0.001 unless you want near-equal shares to count as a tie (see the rule).
Temporary layer or a file (GeoPackage, shapefile…). The result is loaded coloured by status; the Log tab ends with a summary.

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
For each input polygon of area A, the intersection area with each overlay polygon is measured. Then:
The overlay polygon with the largest intersection gives its value; dom_pct = 100 × intersection / A.
If the two largest differ by no more than the tolerance, the status is empate and no value is transferred.
Intersections smaller than the tolerance (polygons that only share a border) are ignored. Nothing left → sem_intersecao.
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.
Each slider is the share of the input polygon covered by one overlay polygon. Same rule as the plugin.
not covered:
Output
Input geometry and attributes plus three fields. Source layers are not modified.
| Field | Content |
|---|---|
| transferred value | Named 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_pct | Percentage of the input polygon covered by the winner (0–100). Filled only when atribuido. |
dom_status | One of the four codes below. |
| dom_status | When |
|---|---|
atribuido | One overlay polygon has the largest intersection. |
empate | Two or more overlay polygons tie for the largest intersection. |
sem_intersecao | No intersection with positive area (no overlap, or only touching). |
sem_geometria | The input feature has no geometry, or an empty one. |
"dom_status" = 'empate' work in any QGIS language.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.
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
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 ellipsoid | Input CRS | Areas |
|---|---|---|
| an ellipsoid (e.g. WGS 84, GRS 80) | any | ellipsoidal, on that ellipsoid |
| None / Planimetric | projected (metres, feet) | planar, in the CRS units |
| None / Planimetric | geographic (degrees) | ellipsoidal, on the CRS ellipsoid — square degrees are never compared |
| — | neither layer has a CRS | planar, same unknown units (warning) |
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.
Validation
Both layers are checked with GEOS (same test as Check Validity), regardless of the Processing setting Invalid features filtering.
| Case | What 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 empty | Copied with sem_geometria. |
| Overlay feature without geometry | Ignored and counted in the log. |
| Multipart features | Handled as a whole: their parts are added up. |
| Line or point layer | Refused with a clear 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-intersectionHelp
Each entry gives the likely cause and what to do.
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.
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.
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).
zone_1Cause: 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.
Cause: Only one of the two layers has a CRS.
What to do: Set the missing CRS in Layer Properties → Source.
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.
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.