Skip to main content
Solved

merging fatures which have the same attribute value

  • April 5, 2018
  • 4 replies
  • 82 views

Forum|alt.badge.img

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.

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+52
  • Celebrity
  • April 5, 2018

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


Forum|alt.badge.img

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+52
  • Celebrity
  • April 5, 2018

@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+31
  • 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.