Skip to main content
Question

Divide planes by area sum

  • November 11, 2024
  • 2 replies
  • 54 views

fme_hans
Contributor
Forum|alt.badge.img+5

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?

2 replies

donalmateer
Safer
Forum|alt.badge.img+6
  • Safer
  • November 15, 2024

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.


fme_hans
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • November 20, 2024
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.

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