Solved

merging fatures which have the same attribute value


Badge

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
icon

Best answer by dustin 5 April 2018, 16:50

View original

4 replies

Userlevel 4
Badge +30

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

Badge

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

 

 

Userlevel 4
Badge +30

@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

Userlevel 3
Badge +26

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.

Reply