native:joinattributesbylocation
How QGIS runs Spatial join: native:joinattributesbylocation.
| Engine | QGIS |
|---|---|
| Tool name | native:joinattributesbylocation |
| Interface | qgis-process |
| Implements | Spatial join |
| Preset | {"METHOD":0} |
| Documentation | Not stated |
| Effects | modifies input: no, network: no |
| Notes | Not stated |
| Status | active |
Parameters
| Name | Type | Required | Default | Choices | Note |
|---|---|---|---|---|---|
DISCARD_NONMATCHING | boolean | yes | no | Not stated | Not stated |
INPUT | source | yes | Not stated | Not stated | Not stated |
JOIN | source | yes | Not stated | Not stated | Not stated |
JOIN_FIELDS | field | no | Not stated | Not stated | multiple values |
METHOD | enum | yes | 0 | 0, 1, 2 | 0 Create separate feature for each matching feature (one-to-many), 1 Take attributes of the first matching feature only (one-to-one), 2 Take attributes of the feature with largest overlap only (one-to-one) |
NON_MATCHING | sink | no | Not stated | Not stated | output |
OUTPUT | sink | no | Not stated | Not stated | output |
PREDICATE | enum | yes | 0 | 0, 1, 2, 3, 4, 5, 6 | 0 intersect, 1 contain, 2 equal, 3 touch, 4 overlap, 5 are within, 6 cross; multiple values |
PREFIX | string | no | Not stated | Not stated | Not stated |
How it maps to the operation
| Operation parameter | Parameter here | Note |
|---|---|---|
left | INPUT | Not stated |
right | JOIN | Not stated |
output | OUTPUT | Not stated |
predicate | PREDICATE | intersects = 0; contains = 1; touches = 3; overlaps = 4; within = 5; crosses = 6 |
how | DISCARD_NONMATCHING | left = no; inner = yes |
Differences from the operation
- METHOD 0 (used here) gives one row per match, like Columbus; QGIS's default keeps only the first match.
Harvested by the qgis harvester from engine version
4.2.3. Names can change when an engine is harvested again.