I have 1 ESRI Shape polygon where each polygon has an ID which represents the object it belongs to. Some polygons belong to one object some belong to multiple objects. Each object is unique.
Geometry ID NEW ID
1 AAAAA AAAAA-BBBBB
2 BBBBB AAAAA-BBBBB
3 CCCCC CCCCC-DDDD-EEEEE
4 DDDDD CCCCC-DDDD-EEEEE
5 EEEEE CCCCC-DDDD-EEEEE
6 AAAAA-BBBBB AAAAA-BBBBB
7 CCCCC-DDDDD CCCCC-DDDD-EEEEE
8 CCCCC-DDDD-EEEEE CCCCC-DDDD-EEEEE
....
I want to substitue the ID of all polygons which IDs are part of the biggest multi-ID.
This should not affect the geometries, just reassign the attributes. I tried several approaches with ListBasedMerger and StringSearcher but don´t find the right way. Anyone any ideas ?