Home › QGIS 4 readiness › Built into QGIS › arrayPlus
arrayPlus Built into QGIS 3.20 as Array expression functions
QGIS 3.20 and later do the main job of arrayPlus natively, with Array expression functions. You can use that instead of installing the plugin. Core expressions now have array_min(), array_max(), array_majority(), array_mean(), array_count() and more, plus hstore_to_map() for OSM other_tags.
| Native feature | Array expression functions |
|---|---|
| First release | QGIS 3.20 |
| Where to find it | Expression builder and Field Calculator › Arrays group (hstore_to_map() is in the Maps group) |
| Plugin | arrayPlus, last released 2021-02-22 |
| Plugin on QGIS 4 | Not QGIS 4 ready |
How to use Array expression functions
- Open the Field Calculator or any expression dialog.
- In the Arrays group, use array_min(), array_max(), array_majority(), array_minority(), array_sum(), array_mean() or array_median() on an array of numbers.
- array_count(array, value) counts how often a value appears, and array_replace() swaps values.
- For OpenStreetMap other_tags fields, hstore_to_map() turns the hstore text into a map.
- Replace the plugin's array_avg() with array_mean() and array_lambda() with array_foreach().
Sources: QGIS 3.20 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.