I have been working on a project tracing lines in a geometric network. I have had to reverse the line (flow) direction on many lines to make the traces work. Now I am at a point where I have to update the master dataset, and so make those same line reversals in the database.
My thought is that I'd run a small arcpy script to check the to/from XY for every line against the to/from of the matching lines in the master dataset - any that have the to XY matching the master from XY (and vice-versa) would be recorded for flipping.
Although I think this script shouldn't be too difficult to write, I am now wondering whether there is a tool already available that will identify the flipped lines for me? I haven't been able to find one in ArcToolbox yet, but I may be looking for the wrong thing.
Note there are other geometry changes in my dataset that I don't want to find, just identical matching lines (matched on an ID) where the only difference is direction. Lines where XY is different I want to ignore.
For example, the follow lines showing line direction
The lines in the blue area I want to take note of, the only difference is the line direction. The line in the red area I do not want recorded as the line has actually moved.
Is there a tool in ArcGIS Desktop (10.5) that can identify lines that have been flipped, but ignore other geometry changes? If so, which one?
I have just found the "Detect Feature Changes" tool, which I am testing right now (it is very very slow). I am unsure whether this is going to find just flipped lines, or everything. Of course I may have set the parameters incorrectly.
The Detect Feature Changes tool finished processing - took close to 20 minutes to run - but only found 9 features where the line direction had changed. I am expecting at least 10000 flipped features.