Skip to main content
Solved

unexpected result of the network flow orientor

  • July 11, 2017
  • 2 replies
  • 48 views

femo
Contributor
Forum|alt.badge.img+6

Hi,

I am using the networl flow orientor to check the direction of digitisation agains a given flow direction.

This is a snippet of the script, i have also attached it, together with the 3 lines and the one destination point (fme 2017):

I expected all three lines to have the same _direction value "same". However, the one with GISID 3128

shows up with the value "opposite". But if one Looks at the coordinate order they all goes towards the destination point. I do not understand the behaviour!

Best answer by takashi

"opposite" here means that the direction of the original line WAS opposite against the flow direction. The NetworkFlowOrientor reverses the "opposite" lines, so all the resulting lines orient the same direction as flow.

"Fixes the flow (direction) of each edge or linear feature in the network to fit the downstream direction to the destination node. ... Parameters | Direction Attribute: If an edge is reversed, the value of the attribute specified in Direction Attribute will be opposite. Otherwise, the value will be same." -- NetworkFlowOrientor Help
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.

2 replies

takashi
Celebrity
  • Best Answer
  • July 11, 2017

"opposite" here means that the direction of the original line WAS opposite against the flow direction. The NetworkFlowOrientor reverses the "opposite" lines, so all the resulting lines orient the same direction as flow.

"Fixes the flow (direction) of each edge or linear feature in the network to fit the downstream direction to the destination node. ... Parameters | Direction Attribute: If an edge is reversed, the value of the attribute specified in Direction Attribute will be opposite. Otherwise, the value will be same." -- NetworkFlowOrientor Help

femo
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • July 12, 2017

"opposite" here means that the direction of the original line WAS opposite against the flow direction. The NetworkFlowOrientor reverses the "opposite" lines, so all the resulting lines orient the same direction as flow.

"Fixes the flow (direction) of each edge or linear feature in the network to fit the downstream direction to the destination node. ... Parameters | Direction Attribute: If an edge is reversed, the value of the attribute specified in Direction Attribute will be opposite. Otherwise, the value will be same." -- NetworkFlowOrientor Help
I should better read the documentation! Behaviour is exactly as described.