Skip to main content
Solved

Quiz! Difficulty: Hard. Make a recursive Clipper


sigtill
Contributor
Forum|alt.badge.img+24

Quiz! Difficulty: Hard. Make a recursive Clipper

 

I want to clip 2000 partially overlapping areas with each other. And they are sorted and given a priority in the order they need to be clipped. Attached is an example workspace that uses text as a sample. Shown below are the result. The letter "F" is the first clipper, then "M", then "E" etc. Så every area/letter is behind the other one.

 

The attached workspace shows the approach.

 

How can I wrap the equal processes within the "New Bookmark" into a custom transformer that works recursively so I dont need to copy/paste these bookmarks x number of times.

 

Good luck!

 

 

Best answer by geomancer

Aren't you overcomplicating things?

I used an AreaOnAreaOverlayer writing the _count attribute to a list, a ListSorter to ensure list element 0 contains the lowest _count value, a ListIndexer to write the value of element 0 back to _count, and a Dissolver to merge the polygons on attribute _count.

Dissolved

View original
Did this help you find an answer to your question?

2 replies

geomancer
Evangelist
Forum|alt.badge.img+46
  • Evangelist
  • Best Answer
  • April 19, 2021

Aren't you overcomplicating things?

I used an AreaOnAreaOverlayer writing the _count attribute to a list, a ListSorter to ensure list element 0 contains the lowest _count value, a ListIndexer to write the value of element 0 back to _count, and a Dissolver to merge the polygons on attribute _count.

Dissolved


sigtill
Contributor
Forum|alt.badge.img+24
  • Author
  • Contributor
  • April 19, 2021
geomancer wrote:

Aren't you overcomplicating things?

I used an AreaOnAreaOverlayer writing the _count attribute to a list, a ListSorter to ensure list element 0 contains the lowest _count value, a ListIndexer to write the value of element 0 back to _count, and a Dissolver to merge the polygons on attribute _count.

Dissolved

This is exactly why I love this forum. Great answer to my solution and using completely different Transformers than I thought was needed. Thanks for a great solution @geomancer​ !


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings