Skip to main content
Solved

merging fatures which have the same attribute value


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.

View original
Did this help you find an answer to your question?

4 replies

danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • 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
danilo_fme wrote:

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
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • 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.


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