Skip to main content

I am new in FME and it will be great if could you help me

 

 

i have different tree networks and each network consist of several points A,B,C

 

the main ID Points A

Points A connects to points B , then points B connects to Points C

i created tree network between A, B,C and it works great by spatial relators .

but i have still big problem , i do not know hwo to solve it .

 

if the tree network has his own Points B and C so it works great

because it should each tree network isolated, but in case ,one or two of Points B connects to different tree network as one point B connects to two different Point A1 ,Point A2 and some times 3 Points of A

 

so it will consider two tree network as one tree , and gives the two network the same network id ,it seems wrong for me ,it should each tree network isolated from another

i mean, if Points B connects to two tree network so i would like to create two tree network not only one

AS EXAMPLE IF Point A1 connects to B1,B2,B3,B4, C1,C2,C3,C4

Point A2 connects to B4 ,B6,B1,C5,C7

 

it shoud each Point A has his own tree network ,but i got _network_id_1 contains

Points A1 connects to B1,B2,B3,B4, C1,C2,C3,C4,A2 ,B6,C5,C7 .it considers all of points as one network

becaue of Points B1,B4 connects to Both of Point A1,and A2 at the same time .

so as output ,i would like to have _network_id_ 1 has Points A1 connects to B1,B2,B3,B4, C1,C2,C3,C4

_network_id_2 has Points Points A2 connects to B4 ,B6,B1,C5,C7 .even if i have a common Point B but it will be good if is there a way to notice also that i have Point B repeated two times in two different network .

if i did the method to recognize it by overlaps ,i amn ot sure because i may be come one line from Point A1 and 3 from Point 2 so it will be hard to recognize by overlap.any suggestion,it will be great

 

second problem relates to this problem,how could i recognize these lines only that come out from the common Point B between Point A1 and Point A2 ,and also if there any method to know if these lines come out ,which point A1 or Point A2 connects to .if yes,how could i achieve that ?

 

FME version 2018

Thanks in advance for helping

 

 

 

 

 

 

It appears you are using NetworkToplogyCalculator.

The way to restrict it to only analysing discrete subnetworks, or different "Trees" is to use "Group By" Mode. This will restrict the analysis to only those Features that have a common subnet/Tree identifier.

This will require each network element attributed with which SubNetwork(s)/Tree(s) they belong to.

If elements belong to multiple Subnetworks then:

  1. Build a List of the Subnetwork/Tree identifiers on each element
  2. Explode this to a Many-to-1 Table with ListExploder
  3. Send the results to NetworkToplogyCalculator with the Group By set to the Subnetwork/Tree identifier

@dina_dodo do you have a small example data set that you can attached so that contributors can create an example?


@dina_dodo do you have a small example data set that you can attached so that contributors can create an example?

i used the method in this article

https://knowledge.safe.com/questions/37338/finding-parent-child-connection-between-nodes-with.html?childToView=37360#answer-37360

i believe,u have suggested using spatial relator

and it works great to me, i used ur idea and thanks for it but ,my problem when i have point is common between two tree ,bcs my conductors include all connects line to both of points customers and xfmr .

but i have three point not only two as this example so i used three spatail relator.

the main point is A ,it should each point from A has his own tree with xfmr and customers

but sometimes xfmr is common between this main point A and another point .so it will be as big tree and it is wrong for me .

i would like to let each A has his own tree and if they are connected in common xfmr so each tree has his own xfmr but

say for main point A1 has his own network 1

for second main point A2 has his own network 2

but as my output what i got and i need to correct it Point A1 and Point A2 has the same network because they are connected in common point xfmr as your example .Thanks alot for any help


It appears you are using NetworkToplogyCalculator.

The way to restrict it to only analysing discrete subnetworks, or different "Trees" is to use "Group By" Mode. This will restrict the analysis to only those Features that have a common subnet/Tree identifier.

This will require each network element attributed with which SubNetwork(s)/Tree(s) they belong to.

If elements belong to multiple Subnetworks then:

  1. Build a List of the Subnetwork/Tree identifiers on each element
  2. Explode this to a Many-to-1 Table with ListExploder
  3. Send the results to NetworkToplogyCalculator with the Group By set to the Subnetwork/Tree identifier

i did it ,thanks alot for ur suggestion.

now i have many points B in the midde,it makes subnetwork tree ,

so now,how could i do the relations between each subtree and main point A ,does it work with spatial relator or which suggestion do u prefer ?

 

and if one of point B connects to 2 or 3 different point of A so , i want to recognize the point B it and do condition on the output line ,How could i do that and thanks alot for for ur advice .

 


Reply