Quantcast
Channel: Question and Answer » arcpy
Viewing all articles
Browse latest Browse all 767

Script for selective dissolving of multiple features

$
0
0

I am kinda new to Python and arcpy and have done some basic online courses on this. So I do have an idea how these scripts are structured/written and how they work. Now I have to perform a seemingly complicated analysis for my master thesis which goes something like this:

I have an excel file in matrix form of around 400 polygon features (municipalities). Each municipality has a relationship with others around it (no. of people commuting daily between the municipalities). I have to somehow make a script/model which dissolves each municipality with only that municipality (out of 400) which has the highest no. of commuters travelling towards it (not from it). This might make one municipality dissolve with multiple municipalities also which is fine.

Anything like this has been done before? I’m thinking about the script and I can’t think how I make this selective dissolve?


The excel table.

This is how the table looks like its not really a matrix but I guess it can be converted into one like in mentioned by Richard. The first two columns are origin and destination IDs and the last column is the no. of commuters.


Viewing all articles
Browse latest Browse all 767

Trending Articles