Home › QGIS 4 readiness › Built into QGIS › NNJoin
NNJoin Built into QGIS 3.8 as Join attributes by nearest
QGIS 3.8 and later do the main job of NNJoin natively, with Join attributes by nearest. You can use that instead of installing the plugin. The Processing algorithm joins each feature to its nearest (or k nearest) features in another layer, with an optional maximum distance.
| Native feature | Join attributes by nearest |
|---|---|
| First release | QGIS 3.8 |
| Where to find it | Processing Toolbox › Vector general › Join attributes by nearest |
| Plugin | NNJoin, last released 2019-09-11 |
| Plugin on QGIS 4 | Not QGIS 4 ready |
How to use Join attributes by nearest
- Open the Processing Toolbox and find Join attributes by nearest under Vector general.
- Set Input layer to the layer that receives the attributes and Input layer 2 to the layer they come from.
- Optionally pick the fields to copy, Maximum nearest neighbors (k) and a Maximum distance.
- Run it. Check Discard records which could not be joined to leave out features without a match.
Sources: QGIS 3.8 changelog entry QGIS User Manual
A native feature can differ from the plugin in details. If you rely on a specific option, read the linked entry before you uninstall.
QGIS plugin news, once a week
GIS Plugins Weekly: new plugins, useful updates and QGIS 4 readiness changes. Free, unsubscribe anytime. See a sample issue.
