Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Combine overlapping continuous polygons into groups

rtlane
8 - Asteroid

I have a list of polygons each with a unique ID like below:

 

Point IDSpatialObj
1Polygon
2Polygon
3Polygon

 

I want to take any continuous overlapping polygons and combine them into 1 group and 1 combined polygon. In the below example, each colored area would be 1 row (group) with a combined polygon. So there would be 4 rows/groups in the below example.

 

rtlane_0-1636049359551.png

 

4 REPLIES 4
fmvizcaino
17 - Castor
17 - Castor

Hey @rtlane ,

 

Here is an example for you.

fmvizcaino_0-1636051501454.png

 

 

 

Best,

Fernando Vizcaino

Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @rtlane,

 

Nice question!

 

So i'd break this down into three main parts:

(1) Summarise all your polygons (using a summarise tool to create one full spatial object)

(2) Break summarised polygon back into detailed regions to determine individual "groups"

(3) Check for SpatialObj holes, match them back to the polygon "group" it came from and carve it out

 

My starting polygons:

JonathanSherman_1-1636051812333.png

 

 

My final "grouped" polygons:

JonathanSherman_0-1636051784424.png

 

Kind regards,

Jonathan

 

rtlane
8 - Asteroid

Leave it up to me to overcomplicate it. 🤣 This worked great, thank you!

Jonathan-Sherman
15 - Aurora
15 - Aurora

No problem at all! @LeahK this would be a great idea for a weekly challenge?

Labels