Select to view content in your preferred language

geometric network - trace result order

2640
0
11-20-2014 10:22 AM
AndreaDoberstein
Deactivated User

Hello,

 

I have a geometric network and I am doing a simple connected Trace programatically.

e.g. //Run trace

pNewTrace.FindFlowElements(esriFlowMethod.esriFMConnected, esriFlowElements.esriFEJunctionsAndEdges, out pJuncSel, out pEdgeSel);

 

After running the trace function, I need to read the features from the result set (edges and junctions) in the order of their spatial appearance from the start point of the trace.

What I get in the result is junctions and edges in the increasing order of their network ids - pJuncSel, pEdgeSel.

Is there any way to get the features in the order of their spatial location from the start point of the Trace.

 

Thanks, Andrea

0 Kudos
0 Replies