[general]
name=Dominant Overlap Join
qgisMinimumVersion=3.28
supportsQt6=yes
description=Transfers to each polygon the attribute of the overlay polygon that covers the largest part of it, with coverage percentage and tie detection.
about=For each polygon of an input layer, finds the polygon of an overlay layer with the largest intersection area and copies one of its fields to a new layer, together with the percentage of the input polygon it covers and a status (atribuido, empate, sem_intersecao, sem_geometria).
    Ellipsoidal areas, so layers in different CRSs are compared correctly; configurable tie tolerance (ties transfer no value); spatial index; geometries validated first, with the ids of the invalid features listed and nothing repaired; source layers never modified. There is no minimum coverage: the largest intersection wins even when it is small, and the coverage field shows it.
    A Processing algorithm (background run, progress, cancel, batch, models, processing.run) also reachable from the toolbar and the Vector menu. Interface in English, Brazilian Portuguese and Spanish.
    
    Português: para cada polígono da camada de entrada, encontra o polígono da camada de sobreposição com a maior área de interseção e copia um de seus campos para uma nova camada, com o percentual coberto e um status. Áreas elipsoidais, CRS distintos, tolerância de empate, validação de geometrias.
version=0.1.0
author=Marcello Benigno Borges de Barros Filho
email=benigno.marcello@gmail.com

changelog=
 Version 0.1.0:
 - Initial release.
 - *Dominant overlap join* Processing algorithm (also in the Vector menu and the toolbar):
   copies the input polygons and adds the value of a field of the overlay polygon with the
   largest intersection, the percentage it covers (`dom_pct`) and a status (`dom_status`:
   `atribuido`, `empate`, `sem_intersecao`, `sem_geometria`).
 - No minimum coverage; warning in the log when the winner covers less than half of an
   assigned feature.
 - Configurable tie tolerance in percentage points of the input area (default 0.001), never
   exact floating-point equality.
 - Areas follow the project's measurement settings (ellipsoidal or planar) and are never
   compared in square degrees; overlay reprojected to the input CRS.
 - Geometries validated before anything is written: invalid features listed by layer and id;
   nothing repaired; source layers never modified.
 - Spatial index and prepared geometries.
 - Field type of the transferred value preserved; NULL kept; field names that never overwrite
   input fields and fit the output format (10 characters for shapefiles).
 - Output coloured by status when loaded.
 - Interface in English, Brazilian Portuguese and Spanish.



tags=join, overlay, intersection, largest overlap, majority, area, attribute, polygon, vector, analysis
homepage=https://marcellobenigno.github.io/dominant-overlap-join/
tracker=https://github.com/marcellobenigno/dominant-overlap-join/issues
repository=https://github.com/marcellobenigno/dominant-overlap-join

category=Vector
icon=icons/icon.png
experimental=False
deprecated=False
hasProcessingProvider=yes
