Skip to main content

Hi,

I have a layer with closed polygons. On top of these polygons lies a layer with smaller areas. These areas are divided into 3 types.
Each type of area needs to be assigned a year, and the total area per table type should be approximately equal within the larger area.
How can I create a distribution where each type of area is used, and the total area of each type is approximately equal?

How could I achieve this with FME?

Hi ​@fme_hans,

Thanks for posting! 
Here are some quick tips that may help in getting your desired results!
To Calculate areas of polygons you can use the - AreaCalculator.
The SpatialRelator or SpatialFilter will help associate each small polygon with a corresponding large polygon.
The StatisticsCalculator will help calculate the sum of areas for each type within each large polygon.
The AttributeManager will help assign a year to each type.

Hope these help and bring you in the right direction! Let me know if you have any more issues!
Donal.


Thank you. The steps you indicate are the preparation. The difficulty for me is to  distribute the surfaces as evenly as possible with the lage polygons. I think that's difficult with only FME transformers. For now I solved it by writing a small C# tool. That was the easiest way. It probably could have been done with a Python script in FME. But my Python skills are poor.

Reply