Skip to main content

i have different points (A,B,C,D,E,F,G,H,I,K) .

some points are connected together and some not in the network ,as example

A connects to B connects to C

D connects to E

C connects to G

F connects to I connects to K

 

if there are any connection between any point ,

i want to use shortest path finder ,depend on the shortest length and the largest value in specific attribute .

soi am not sure how could i let the shortest path finder pick only and choose the largest value of attribute if he has multiple path and the transformer should decide

 FME 2018

Thanks for help

I'm not sure I understand exactly what you want to accomplish, but have you looked at a One or Two Attribute Cost Type in the ShortestPathFinder?


@gogopotter90​ I'm not sure I fully understand your question either, but ShortestPathFinder Cost Type parameter supports either a single attribute OR length. Also, it uses the lowest value of the cost attribute. So you'll have to try and combine the 'inverse' of your "specific attribute" and the lengths to come up with a single cost value.

If you can attach a small sample dataset the problem might be clearer to the community.


@gogopotter90​ I'm not sure I fully understand your question either, but ShortestPathFinder Cost Type parameter supports either a single attribute OR length. Also, it uses the lowest value of the cost attribute. So you'll have to try and combine the 'inverse' of your "specific attribute" and the lengths to come up with a single cost value.

If you can attach a small sample dataset the problem might be clearer to the community.

i will try to explain better ,i have several lines in network and each line has his own value in attribute called thick .

attribute thick : has different values for each lines as example : 50 or 100 or 200 or 40 .

as example : from point A to Point B ,it has many paths,i would like to choose the shortest one and also choose the highst thick .

from a to b ,if it has two paths 50 or 200 ,so it will path through the line that has 200 and so on .i want to choose the highst thick in each path .

could you advice me ,how could i do that ? thanks


i will try to explain better ,i have several lines in network and each line has his own value in attribute called thick .

attribute thick : has different values for each lines as example : 50 or 100 or 200 or 40 .

as example : from point A to Point B ,it has many paths,i would like to choose the shortest one and also choose the highst thick .

from a to b ,if it has two paths 50 or 200 ,so it will path through the line that has 200 and so on .i want to choose the highst thick in each path .

could you advice me ,how could i do that ? thanks

So what happens if you have a path that is 10m and 50 thick and one that is 20m and 100 thick? Do you choose the shortest path or the highest thick?


important for me the highst thick . but if there option to find the shortest path between multiple path that each path has the same value 50 may so i would like to go through the shortest path .

anyway ,i would like to go through the path that has highst thick,how could i do that ?

as ur example 10 m and 50 thick , and another 20 m and 100 thick

so i will prefer going through the highst thick 100 , 20 m

thanks


@gogopotter90​ As I mentioned above. ShortestPathFinder allows only one cost value and tries for the cost lowest value. So you can use the inverse of the thickness (1/thickness). Then you have to try and combine that with the length to come up with a single cost scaler. So something like (1/thickness)*1000 + length


@gogopotter90​ As I mentioned above. ShortestPathFinder allows only one cost value and tries for the cost lowest value. So you can use the inverse of the thickness (1/thickness). Then you have to try and combine that with the length to come up with a single cost scaler. So something like (1/thickness)*1000 + length

thanks alot ,i will do ur idea


Reply