Skip to main content
Solved

merging fatures which have the same attribute value


lianaolianov
Contributor
Forum|alt.badge.img+5

Hello,

I have a network where this are many connected lines on nodes

 

I wanna make from the ones having the same value of an attribute to get connected and became one feature.

 

Is there any way to do it ?

 

Thank you

Best answer by dustin

If the lines are end-noded, you can use the LineJoiner with the Group-by option set to the attribute you want to join by.

View original
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

danilo_fme
Celebrity
Forum|alt.badge.img+57

Hi @lianaolianov,

I believe you can work with spatial transformers to get the attributes.

For example, the transformer SpatialRelator. You can choose the Spatial Predicates to Test = touches.

And enable the option Generate List.

Thanks,

Danilo


lianaolianov
Contributor
Forum|alt.badge.img+5

Hi @lianaolianov,

I believe you can work with spatial transformers to get the attributes.

For example, the transformer SpatialRelator. You can choose the Spatial Predicates to Test = touches.

And enable the option Generate List.

Thanks,

Danilo

Can you explain to me please a little more how to do with details ?

 

Thank you

 

 


danilo_fme
Celebrity
Forum|alt.badge.img+57

@lianaolianov,

I created here a Workspace to show about this process.

In my Workspace I used two shapefiles : Lines and Nodes. You can see the attributes associate in Lines and Nodes.

After I used the transfomer SpatialRelator to check the lines are connected with nodes.

Inside parameters on these transformer I selected the option Generate List, because I want to get the attributes from Nodes.

A Tester transformer was inserted in Workspace to filter the lines are connected _related_candidates >= 1.

The results in FME Data Inspector with all attributes ( Lines and Nodes ):

Attached the Workspace - workspace-spatialrelator.fmwt

Thanks,

Danilo


dustin
Influencer
Forum|alt.badge.img+36
  • Influencer
  • Best Answer
  • April 5, 2018

If the lines are end-noded, you can use the LineJoiner with the Group-by option set to the attribute you want to join by.