Skip to main content
Solved

NetworkFlowOrientor returns no output

  • March 20, 2026
  • 3 replies
  • 73 views

gogopotter90
Contributor
Forum|alt.badge.img+14

Hi everyone,

I am working in FME and would like to orient the flow direction of a gas network.

Data:

  • main supply lines

  • service lines connected to gas connections

  • Destination  points – representing the gas service connection locations

Objective:

My goal is to ensure that all Service lines are oriented towards the Gas Service connection points.
If a line is digitized in the opposite direction, it should be automatically reversed.

Additionally, some lines connected to Service Connection points   are split into multiple segments. I need all connected segments to have a consistent direction towards the same Service Connection points .

What I tried:

  • I used the NetworkFlowOrientor transformer

  • I applied a Anchoredsnapper beforehand to ensure that each Service connections point lies exactly on the endpoint of the corresponding Service  lines

Problem:

  • The NetworkFlowOrientor returns no output

Questions:

  1. What is the correct workflow to ensure that all Service  line segments are consistently oriented toward the destination points?

  2. I am not using Group By. Should I use it, or do I need to define a source (supply)?

 

Could someone please share a working sample workflow that uses NetworkFlowOrientor to help me understand how it works?

Any help or suggestions would be greatly appreciated.

 

FME 2021

Thanks in advance!

Best answer by DanAtSafe

Hi ​@gogopotter90 The NetworkFlowOrientor should work if the topology is good.  The attached workspace demonstratest how to use a TopologyBuilder or a NetworkTopologyCalculator to validate the network.

3 replies

DanAtSafe
Safer
Forum|alt.badge.img+23
  • Safer
  • Best Answer
  • March 20, 2026

Hi ​@gogopotter90 The NetworkFlowOrientor should work if the topology is good.  The attached workspace demonstratest how to use a TopologyBuilder or a NetworkTopologyCalculator to validate the network.


gogopotter90
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • March 23, 2026

@DanAtSafe 

Many thanks for your reply. I have checked it, and I appreciate your explanation.

However, I would like to understand a bit more. Does the NetworkFlowOrientor only define the direction (whether it is the same or opposite), or does it also force the line to follow a direction toward the destination point?

if not ,how to force line to follow the direction to destination .(reorder the vertex of line)

Also, what is the advantage of using “Group By” in the NetworkFlowOrientor transformer, and when should I use it?


DanAtSafe
Safer
Forum|alt.badge.img+23
  • Safer
  • March 23, 2026

The NetworkFlowOrientor reorients (flips) any lines that aren’t already directed toward the destination point. Use an OrientationExtractor before and after the NetworkFlowOrientor to see which lines changed direction.

The “Group By” is to orient lines to the destinations that match by a common attribute value.