Skip to main content
Solved

Merge adjacent polygon that contains larger polygon

  • May 21, 2015
  • 11 replies
  • 43 views

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".
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.

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
Celebrity
  • 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
Celebrity
  • 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
Celebrity
  • 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
Celebrity
  • 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
Celebrity
  • 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.