It exists already.
Dissolve (Data Management tools)
So why another one?
Simple. You need an attribute to dissolve on.
You are doing your aggregation of shapes based on a common attribute, so it is grouping things based on commonalities.
The work around, is to fill a column with a common attribute, then away you go.
As part of my work on the Geo array that I use for my Free Tools project, I began to explore how dissolve actually works. Sadly, it isn't as simple as I thought and reading the academic papers or tearing apart code left me feeling a bit lost. I admit, reading my code after a few days away leaves me feeling the same.
In short:
So some examples:
Laughing person ... before and after dissolve
Note the shapes aren't in order which makes it a challenge. You can do a lexicographic sort of the left-most coordinate to speed up the identification of adjoining shapes.
Bird on Dog ... before and after dissolve
This example shows two groupings of geometry. I chose the dump the holes option.
The Dissolve Boundaries tool
References
arcpro_npg ... npg ... (n)um(p)y (g)eometry the code
Github version
GitHub Pages
geonumeracy... a compendium of geometry learnings
geonumeracy... on GitHub Pages
Try taking down a few boundaries yourself... either in life or geometry 😁 .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.