Skip to main content
Solved

Geometric Network and Adding Values in a Field from Source to Sink


pingotech
Participant
Forum|alt.badge.img

Hoping someone can help me out. I have a geometric network of wells, pipelines and facilities. I have already ran a custom ArcHydro python script to break the pipelines up at every junction point and give the pipelines unique HydroIDs, ToNodes, FromNodes and NextDownIDs (which indicates which pipeline, AKA HydroID, to flow to next). The wells produce water and I can add the monthly production values from the wells to the adjacent pipeline using the Bufferer and SpatialFilter transformers.

 

 

I'm now trying to find a way to add the production through the rest of the pipelines. I have NextDownIDs, which I thought I could maybe just group the pipelines by all pipelines that share the same NextDownID field and add the production values in the Water_Production fields together, however this adds the values incorrectly because it doesn't add the pipelines in order from well (source) to facility (sink). Does anyone have an idea of how I can use FME to add the production values up correctly through my geometric network?

Best answer by markatsafe

@pingotech It looks like a combination of the ShortestPathFinder and Matcher can help solve this question.

  • Get the shortest path from each well to the facility (sink).
  • split each path into it's original segments (you now have overlapping segments for each well-facility path)
  • match the overlapping segments and sum the production values

In the end we didn't need the HYDROID nodes. I've attached the example workspace (FME 2019.0): ApportionmentGasLines2019_0.fmw

View original
Did this help you find an answer to your question?

3 replies

ebygomm
Influencer
Forum|alt.badge.img+31
  • Influencer
  • July 26, 2019
The NetworkCostCalculator may be worth looking at

Forum|alt.badge.img+2

@pingotech I'm pretty sure we should be able to figure out an FME solution to this interesting network problem. Is there any chance that you can include a small sample dataset as a File Geodb? (or you can send it directly to me at mark @ safe.com)


Forum|alt.badge.img+2
  • Best Answer
  • August 2, 2019

@pingotech It looks like a combination of the ShortestPathFinder and Matcher can help solve this question.

  • Get the shortest path from each well to the facility (sink).
  • split each path into it's original segments (you now have overlapping segments for each well-facility path)
  • match the overlapping segments and sum the production values

In the end we didn't need the HYDROID nodes. I've attached the example workspace (FME 2019.0): ApportionmentGasLines2019_0.fmw


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