[Qgis-user] Easy way to use categorical classification on 'array' type fields?

Ujaval Gandhi ujaval at spatialthoughts.com
Thu Mar 6 05:10:49 PST 2025


There is a 'Split features by character' tool in Processing Toolbox that can
split the values in the array and create 1 feature per value. 
---
Ujaval Gandhi
Spatial Thoughts
www.spatialthoughts.com
[https://mailtrack.io/l/7d2f999ad3fe83f54114b7443564be80d0d4952d?url=http%3A%2F%2Fwww.spatialthoughts.com&u=8747767&signature=096e0e8f1ae02998]




On Thu, Mar 6, 2025 at 6:17 PM Greg Troxel via QGIS-User
<qgis-user at lists.osgeo.org> wrote:


> Richard Duivenvoorde via QGIS-User <qgis-user at lists.osgeo.org
> [qgis-user at lists.osgeo.org]> writes:
> 
> > We have vector data with one field in that data which is an "n array of
> (freeform) tags"...
> >
> > So having 10 records, we may have 30 different tags.
> >
> > Is there a way to 'explode' those records within QGIS (without manipulating
> the source), so we could create a 'classification' of all individual tags...
> > My idea would be to see a record with 3 tags then 3x in QGIS, but being able
> to only check ONE of the tags, my user could view the data base on individual
> tags...
> 
> If you're willing to store this in postgresql/postgis, you can probably
> create a view to do this reasonably easily.  Then you aren't changing
> the source, or needing to synchronize, but you can still have a single
> tag column and multiple rows.
> 
> postgresql also has hstore, but I don't think that's what you want:
> 
>   https://www.postgresql.org/docs/current/hstore.html
> [https://www.postgresql.org/docs/current/hstore.html]
> 
> _______________________________________________
> QGIS-User mailing list
> QGIS-User at lists.osgeo.org [QGIS-User at lists.osgeo.org]
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
> [https://lists.osgeo.org/mailman/listinfo/qgis-user]

[data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=3D]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20250306/508d5e6f/attachment.htm>


More information about the QGIS-User mailing list