Skip to main content
Question

Line feature direction


cwarren
Forum|alt.badge.img

What I need to do is first set the flow direction for the pipeline and from there I can use transformers to copy attributes from a point feature and copy it to the line feature that is behind it (flow direction). The line segments are not collected in a numerical object id order, so I can't figure out how to set a flow direction to be able to set attribute values that both feature classes share and should be the same.

*GDB feature classes*

Example:

erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • August 4, 2016

If the lines are drawn in the flow direction, then the end point can be collected by using the CoordinateExtractor using index = -1.

You can compare the X/Y with the X/Y of the Weld to get the match.


cwarren
Forum|alt.badge.img
erik_jan wrote:

If the lines are drawn in the flow direction, then the end point can be collected by using the CoordinateExtractor using index = -1.

You can compare the X/Y with the X/Y of the Weld to get the match.

 

That is the problem. The lines aren't always drawn in the flow direction. Would there be any way to get around that?

 


erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • August 4, 2016

You can determine the start of the line (as drawn) by using index = 0. But that will not tell you a flow direction. In your example the first line only has a weld at the end, after that weld is used the next line has two welds of which one is used by the first line etc.

But I do not know how to generate the flow direction from that information. You still need to know where to start and end. If you know that you would be able to use the ShortestPathFinder to create a path (with direction).


pratap
Contributor
Forum|alt.badge.img+11
  • Contributor
  • August 5, 2016

Hi,

Changing the direction can be done but do you have information that says which lines are present in correct or wrong direction?


david_r
Evangelist

I've had good experiences using the TopologyBuilder in similar cases, it will construct junction nodes and give you the attributes that indicates how the lines are connected. The junction nodes should intersect your weld points.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings