Question

Clone polygons based on list

  • 5 February 2020
  • 2 replies
  • 0 views

Badge +9

Hello FME gurus,

I have a polygon layer where some polygons overlap and I need to end up with a single polygon per label.

 

In the image above, I have three polygons, A, B and C (shown in green) but sections of each overlap i.e. B/C and A/C

I have converted the labels as attributes to the polygons and split the attributes into parts.

I want to be able to clone the overlapping parts and then merge based on the label i.e. A, B or C.

Any ideas would be very much appreciated.

Thanks

Dean

 


2 replies

Userlevel 2
Badge +12

The cloning can be done using the ListExploder transformer.

That transformer duplicates the geometry for each element in the list.

Next the Dissolver (group by ElementLabel) would create your complete polygons.

Hope this helps.

Badge +9

The cloning can be done using the ListExploder transformer.

That transformer duplicates the geometry for each element in the list.

Next the Dissolver (group by ElementLabel) would create your complete polygons.

Hope this helps.

Thanks @erik_jan, you are a champion, that worked perfectly :)

 

Reply