This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
We're actively looking for ideas on how to improve Weekly Challenges and would love to hear what you think!
Submit FeedbackAnother nice execrcise using spatial tools that I don't use very often in my day job. Good learning experience and a showcase of what Alteryx can do.
Good refresh of Spatial tools
Hi @GeneR @jarrod @DavidLane @CR_Marland @CKP ,
I'm a beginner to Alteryx and very new to Spatial. I was trying few Alteryx Spatial challenges and this challenge came up.
Here objective is clearly written to "Remove all splatter less than 2 square miles" then why in Filter tool "AreaSqMi" is considered >= 2.
Also if anyone can explain how exactly split polygon helped to remove the spatter.
Hi @george317
In order to remove the splatter less than 2sq mi, you have to apply the logic 1 of two ways:
1) select the spatial objects that are less than 2sq mi and exclude
for this, the filter formula would be AreaSqMi < 2
however, this would pass all of those values to the "true" side of the filter, so we'd have to just connect to the "false" side to get the "good" spatials.
2) select the spatial objects that are >=2 sq mi, since they are good and ONLY include those
i went this route because i like to keep my filters "true"
for this one, i used the AreaSqMi >= 2 and connected to the True side of the filter.
honestly, either way works, but you have to adjust the logic/connection to get the correct spatials.
Split polygon (by region) allows the entire complex spatial object to be split up into smaller regions. Using the "detailed" option provides another field in the output called "Split_IsHole" - that is essentially negative space in the polygon and when we remove this spatial object, it allows us to get rid of the holes when concatenate the final spatialObj.
the remaining "regions" from the split polygon are just spatial objects, which we can run Area calculations on - this helps us determine the square miles and filter (as detailed above).
does that make sense?
Yes makes sense completely. Thank you for the time and efforts. God bless you.
Spatial 5