Trees - Grouping two lists and organising them together

Hi,

I’m using Grasshopper on Rhino 8 and have not been able to solve my problem. I have a shapefile of the map of Paris. However, each district is subdivided into zones. Each zone has a specific code that connects it to its respective district. That is my list A. Then, I have a list of the population of each zone. That is my list B.

What I want to do, is organise list A into its respective districts (which i did with create set) – and then sum up each population/zone into the respective districts too!

However, I cannot find a way to make this work. I tried with Split List, Sort list, and a bunch of things but I cannot get it right.

So far, both lists have been flattened.

Thank you !!

a .*gh eith internalized data would be helpful.

GH_FORUM_TREE_DATA.gh (20.8 KB)

Here’s the file!
IRISc_cain is list A

IRISm2_pop is list B.

I ended up creating a reworked shapefile from QGIS to make it work. But there must be a way to do it all on grasshopper. Internalised file is the one I was stuck with.

This uses some plugins I don’t have. Can you put Data components on these wires and internalise the inputs so we don’t depend on the plugins?

Heya, it might also help to upload the .SHP file with the GIS data if you want others to provide filtering logics specific to the data set you need.

I haven’t used the Urbano plugin for this, but @Brian_Washburn’s Heron does wonders when it comes to handling GIS data within Rhino/GH, highly recommend it.