Skip to main content
Solved

Dissolve polygons into neighbouring polygons.

  • April 3, 2020
  • 4 replies
  • 247 views

bjudes
Enthusiast
Forum|alt.badge.img+10

Hi,

I want to dissolve all polygons that are under 1.5m2 into neighbouring polygons. I have managed to merge the 1.5m2 polygons that only intersect one other polygon. But with regards the rest, I want them to dissolve into the largest polygon it intersects. For example, if a 1.5m2 polygon intersects a 100m2, 200m2 and 300m2 polygon I want it to always chooose the 300m2.

Thanks very much for any help.

Kind regards

B

Best answer by ebygomm

I'd use a spatialrelator to find the largest area that the small area was touching and then create a group_id which can be used as a group by option in the dissolver

 

dissolve_to_biggest.fmw

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

jonas_nelson
Enthusiast
Forum|alt.badge.img+25
  • Enthusiast
  • 109 replies
  • April 3, 2020

Hi @bjudes

 

Working from home and don't have access to FME right now, but I'm thinking a SpatialRelator (to find the intersecting polygons), followed by a Sorter (by area) and a Sampler (to pick the first, i.e. the largest polygon) and then Dissolve?

 


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • Best Answer
  • April 3, 2020

I'd use a spatialrelator to find the largest area that the small area was touching and then create a group_id which can be used as a group by option in the dissolver

 

dissolve_to_biggest.fmw


bjudes
Enthusiast
Forum|alt.badge.img+10
  • Author
  • Enthusiast
  • 117 replies
  • April 3, 2020

Hi @jonas_nelson @ebygomm

Thanks so much for this advice, I went with @ebygomm suggestion and it worked perfectly. I appreciate both your input.

Thanks

B


Forum|alt.badge.img+2
  • 1891 replies
  • April 3, 2020

Hi @bjudes

 

Working from home and don't have access to FME right now, but I'm thinking a SpatialRelator (to find the intersecting polygons), followed by a Sorter (by area) and a Sampler (to pick the first, i.e. the largest polygon) and then Dissolve?

 

@jonas_nelson If you're working at home and want to use FME, apply for a home license: https://www.safe.com/free-fme-licenses/covid-19/

 

Include you company name and add "Unable to access my work license form home"