Skip to main content

This seams rather easy but I'm not able to create is.

Input: a lot of area features that are nicely touching each other (no overlaps nor gaps) (assume a 100 areas)

output that I want: I want to have X clusters (to be defined by user) that contains 100/X areas and those areas are not intersecting with each other (see attached screenshot).

The output can everytime be different as long as the areas in 1 cluster don't touch each other.

Thanks

VAT

This might seem easy, but I don't think it is. You're essentually trying to do some form of Graph Colouring, which is a pretty good challenge in itself. I don't think FME currently contains a simple way to do this.


There is the Map Coloring option in the FeatureColorSetter, but the number of colors can't be specified there. The Random color scheme does have a parameter for the number of colors but that won't keep them from touching eachother.


There is the Map Coloring option in the FeatureColorSetter, but the number of colors can't be specified there. The Random color scheme does have a parameter for the number of colors but that won't keep them from touching eachother.

Thanks redgeographics. Although I'm not able to select the number of colors; this featurecolorsetter does indeed help my case. Thanks for mentioning this transformer


Reply