Skip to main content
Solved

Quiz! Difficulty: Hard. Make a recursive Clipper

  • April 19, 2021
  • 2 replies
  • 35 views

sigtill
Supporter
Forum|alt.badge.img+25

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

geomancer
Evangelist
Forum|alt.badge.img+58
  • Evangelist
  • 932 replies
  • 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
Supporter
Forum|alt.badge.img+25
  • Author
  • Supporter
  • 956 replies
  • 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

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​ !