Skip to main content
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

 

 

 

 

 

 
you can use dissolve with "GroupBy" on the attribute that holds the "A", "B',etc

 

 

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

 

 


No problem. Group By "ten" and "Plot".
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 
unclear... What's the "ldlr"?

 

Could you please explain more specifically?
Hi Takashi, I'm sorry. Ldlr is name of colum (it's "ten" column)
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".
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.

 

 

 

 
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.

Reply