[Qgis-user] HELP unable to sort multiple attribute values within a field

John Bryant johnwbryant at gmail.com
Tue Feb 25 21:43:19 PST 2025


Hi Kelly, one method to try is to use a "Rule-based" renderer with a
rule for each species, something like:

array_contains(string_to_array("type", '; '), 'Hyptis')

This expression pattern should also work (but you might get false positives
where one species name is a partial match for another):

"type" like '%Alligator Weed%'

Each category would include all the features that match the expression, so
some features would appear in more than one category.

[image: image.png]

Cheers
John


On Wed, 26 Feb 2025 at 11:33, Kelly Hart via QGIS-User <
qgis-user at lists.osgeo.org> wrote:

> Hello I am attempting to map different weed varieties found in different
> areas (attribute table attached). I need to sort by All Weeds field but
> some of the entries have more than one attribute value. I need to be able
> to map them separately – ie all sicklepod together, all caltrop together
> and so on. Is there a way to sort this to occur? I’ve tried a few different
> ways though expression builder but no luck so far.
>
> I am using QGIS version 3.34.11-Prizren.
>
> Appreciate any advice. Cheers Kel
>
>
>
> *Kelly**​**​**​**​*
>
> *Hart*
>
> Women's Ranger Coordinator
>
>
> * ​Mimal Land Management*
>
> *M:   *
>
> 0476 641 577 <0476%20641%20577>
>
> *E:   *
>
> kelly.hart at mimal.org.au
>
> *W:   *
>
> mimal.org.au
>
>
> _______________________________________________
> QGIS-User mailing list
> QGIS-User at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250226/45fa8cf0/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 6336 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250226/45fa8cf0/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 275893 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250226/45fa8cf0/attachment-0001.png>


More information about the QGIS-User mailing list