Skip to main content
Question

Hi! I have two layers of polygons and would like to aggregate all polygons in one layer that falls within a certain distance of polygons in the other layer. Is this possible in FME? Grateful for any help!

  • September 8, 2022
  • 4 replies
  • 22 views

vaspelin
Contributor
Forum|alt.badge.img+2

In the screenshot attached: I want to aggregate all the green polygons (they are within 2 meters of a building) that belongs to one building into a single polygon.

4 replies

redgeographics
Celebrity
Forum|alt.badge.img+50

Yes, you can use a NeighborFinder on the green polygons to find the closest building (within a max distance) and then,assuming the buildings have an id attribute, aggregate them on that building id.

 

Do note that this will simply look at distance, if you have more complex criteria to specify which polygons belong to which building you'll need to accomodate for that.


caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • September 8, 2022

I would do a buffer for the buildings by 2 metres and then use SpatialRelator with List generation turned on. Send the Output to a ListExploder (this creates copies of the green polygons for each building that they could belong to).

The NeighborFinder seems less useful in this situation.

 


vaspelin
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • September 12, 2022
redgeographics wrote:

Yes, you can use a NeighborFinder on the green polygons to find the closest building (within a max distance) and then,assuming the buildings have an id attribute, aggregate them on that building id.

 

Do note that this will simply look at distance, if you have more complex criteria to specify which polygons belong to which building you'll need to accomodate for that.

Thank you for the input, that worked. :)

 


vaspelin
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • September 12, 2022
caracadrian wrote:

I would do a buffer for the buildings by 2 metres and then use SpatialRelator with List generation turned on. Send the Output to a ListExploder (this creates copies of the green polygons for each building that they could belong to).

The NeighborFinder seems less useful in this situation.

 

Thank you for the input!

 


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