Skip to main content
Question

Spatial Filter (?) - assign full area of intersected polygon to feature that contains the most overlapping area.

  • February 27, 2025
  • 3 replies
  • 44 views

p_c_20
Contributor
Forum|alt.badge.img+8

I appreciate that’s a wordy question. Hopefully, this pic will clarify. 

 

A and B - green polys, low detail at edge - are a dataset I am using to run into a SpatialFilter to determine areas of intersection with the more detailed dataset in pink (amber where there is overlap). 

You can see that part of the upper example polygon I have coloured part of area 1 in blue, and sits mostly inside A. The smaller, black part of 1 sits inside B. 

I want to join the entire area of the intersected polygon fully to the feature from the green dataset that contains the largest part of it - in this case, to A. 

Any ideas how best to proceed? I currently foresee: 

  • Check for intersection of area 1 with areas A & B
  • Calculate area of overlay
  • Test for largest
  • Join all of the area of 1 to A

    Feels like there may be a fair few transformers involved. It’s a national dataset. Just trying to figure out how best to do it. In Esri, I think there might be a simple option to ‘join to largest’…? (Not that I want to jump out of FME)

3 replies

p_c_20
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • March 4, 2025

Ok, I’m thinking that lists may hold the answer.


donalmateer
Safer
Forum|alt.badge.img+5

Hi ​@p_c_20,

Thanks for the post!

From understanding your post I do believe there will be multiple transformers required to get to the correct result!
Here’s some transformers that should assist with the problem:
 

These should help with that you’re trying to achieve!
If you’re still having issues perhaps you could share your workspace and I could have a look into it and try resolve the issue!

Thanks!


p_c_20
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • March 6, 2025
donalmateer wrote:

Hi ​@p_c_20,

Thanks for the post!

From understanding your post I do believe there will be multiple transformers required to get to the correct result!
Here’s some transformers that should assist with the problem:
 

These should help with that you’re trying to achieve!
If you’re still having issues perhaps you could share your workspace and I could have a look into it and try resolve the issue!

Thanks!

Thanks Donal. Figured it out. I couldn’t get Statistics Calculator to pass through the attributes of the merged feature that related to the largest area, so I ended up building a set of lists and doing some manipulation on those.


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