Skip to main content
Solved

Grouping not connected areas


tva
Contributor
Forum|alt.badge.img+12
  • Contributor

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

Best answer by redgeographics

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.

View original
Did this help you find an answer to your question?

3 replies

Forum|alt.badge.img+5
  • July 26, 2016

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.


redgeographics
Celebrity
Forum|alt.badge.img+49
  • Celebrity
  • Best Answer
  • July 26, 2016

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.


tva
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • August 16, 2016
redgeographics wrote:

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


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