Skip to main content
Solved

Assign common grouping to multiple overlapping area


ebygomm
Influencer
Forum|alt.badge.img+39

I have some data similar to the following

I would like to be able to assign a group to this data as follows

I can half achieve this spatially, by dissolving the geometries, assigning a unique ID, exploding a list and then assigning that ID back to the original geometries. This isn't entirely satisfactory due to the need to ignore some areas of overlap, e.g. B & D might overlap spatially but if they're not in my report as overlapping I wish to ignore these.

Any suggestions to do this in a non-spatial way, looping perhaps?

Best answer by takashi

OK. Try the ListCombiner from the FME Hub.

View original
Did this help you find an answer to your question?
<strong>This post is closed to further activity.</strong><br /> It may be a question with a best answer, an implemented idea, or just a post needing no comment.<br /> If you have a follow-up or related question, please <a href="https://community.safe.com/topic/new">post a new question or idea</a>.<br /> If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

takashi
Evangelist
  • October 24, 2016

Hi @egomm, this workflow might help you.

  1. AttributeExposer: Expose "Group".
  2. AttributeManager or AttributeCreator: Assign group ID value to the "Group" with the conditional value setting illustrated in this screenshot.

Note that you have to sort the features beforehand if they are not ordered by group. e.g.

  1. AttributeManager or AttributeCreator: Create a list attribute containing two elements - ID and OVERLAP_ID values. e.g. "_id{}".
  2. ListSorter: Sort the order of the list elements by alphabetic ascending.
  3. Sorter: Sort the features by _id{0} alphabetic ascending, _id{1} alphabetic ascending.

Additionally, the ListCombiner (FME Hub) might also be helpful. I designed this custom transformer for the purpose similar to your case.


ebygomm
Influencer
Forum|alt.badge.img+39
  • Author
  • Influencer
  • October 25, 2016

The groups I've illustrated are simpler than those that exist in reality. It is not possible to sort the features into logical groupings and then assign a value, e.g. the following is also a valid scenario

A overlaps B Group 1

B overlaps A Group 1

B overlaps D Group 1

D overlaps B Group 1

C overlaps E Group 2

E overlaps C Group 2

D overlaps A Group 1


takashi
Evangelist
  • Best Answer
  • October 25, 2016

OK. Try the ListCombiner from the FME Hub.


ebygomm
Influencer
Forum|alt.badge.img+39
  • Author
  • Influencer
  • October 25, 2016
takashi wrote:

OK. Try the ListCombiner from the FME Hub.

Perfect!!!

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