Skip to main content
Solved

Merge adjacent polygon that contains larger polygon


hoa_le
Contributor
Forum|alt.badge.img+5
Hi,

 

 

I want to combine adjecent polygon that have attribute to an object.

 

 

In my working, the file many polygon. In the attached file is example to describe. 

 

 

Could you tell me how to automatic merge it in FME? Thank you

 

 

 

 

 

 

Best answer by takashi

If you need to perform dissolving against only polygons whose area is less than 0.2,

 

 

(1) Filter the polygons with a Tester.

 

Test Condition: @Area() < 0.2

 

"@Area()" is one of FME Feature Functions; you can enter it with the Arithmetic Editor.

 

 

(2) Dissolve the polygons output from the Passed port of the Tester.

 

Grouop By "Ldlr" and "Plot".
View original
Did this help you find an answer to your question?
<strong>This post is closed to further activity.</strong><br /> It may be a question with a best answer, an implemented idea, or just a post needing no comment.<br /> If you have a follow-up or related question, please <a href="https://community.safe.com/topic/new">post a new question or idea</a>.<br /> If there is a genuine update to be made, please contact us and request that the post is reopened.

11 replies

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • May 21, 2015
you can use dissolve with "GroupBy" on the attribute that holds the "A", "B',etc

 

 

 

hoa_le
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • May 21, 2015
Hi Gio,

 

 

I tried dissolve tool But I want to keep all the attribute.

 

 

For example: When you merge by hand for each object, you can keep the attribute.

takashi
Evangelist
  • May 21, 2015
Hi Hoa,

 

 

Gio is right. I believe it's a typical use case of the Dissolver. You can control how to preserve attributes with "Keep Input Attributes" and/or "List Name" parameter.

 

See the help doc on the transformer to learn more about them.

 

 

Takashi

hoa_le
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • May 22, 2015
Hi Takashi, Gio

 

 

You can see in the photo that I describe in the below. 

 

 

Input: I have a polygon file  that have attribute : ten(Name), plot,district,commune.

 

 

My goal: Combine object adjacent to one but they have to contains in plot (1,2,3) And the attribute have to merge and keep fields

 

 


takashi
Evangelist
  • May 22, 2015
No problem. Group By "ten" and "Plot".

hoa_le
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • May 22, 2015
Yes. Thank you so much.

 

 

I have more question. If in a Plot, I want to combine ldlr that the area < 0.2 into adjacent polygon (the same Plot). Could you tell me the solution to make that ? Thank you 

takashi
Evangelist
  • May 22, 2015
unclear... What's the "ldlr"?

 

Could you please explain more specifically?

hoa_le
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • May 22, 2015
Hi Takashi, I'm sorry. Ldlr is name of colum (it's "ten" column)

takashi
Evangelist
  • Best Answer
  • May 22, 2015
If you need to perform dissolving against only polygons whose area is less than 0.2,

 

 

(1) Filter the polygons with a Tester.

 

Test Condition: @Area() < 0.2

 

"@Area()" is one of FME Feature Functions; you can enter it with the Arithmetic Editor.

 

 

(2) Dissolve the polygons output from the Passed port of the Tester.

 

Grouop By "Ldlr" and "Plot".

hoa_le
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • May 23, 2015
Hi Takashi,

 

 

(1) Step 1: (Tester) I tried Tester to filter the area < 0.2, I get relsult this step that polygon area < 0.2

 

 

(2) Step 2: I got the polygons output from passed port of Tester. The small polygon (<0.2) don't merge to adjacent polygon that I dissolve. 

 

 

Could you tell me how I make it? Thank you.

 

 

 

 

takashi
Evangelist
  • May 24, 2015
If the requirement is to dissolve only polygons that area is less than 0.2, my solution must work fine. But your requirement seems to to dissolve the small polygons and adjoining larger polygon(s).

 

If so, you will have to think of other approaches.

 

Firstly clarify the actual requirement, please.

 

 

There could be several conditions.

 

Small adjoining Small

 

Small adjoining Large

 

Large adjoining Large

 

Large adjoining Small adjoinig Large

 

and so on.

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