Hi All, i have 1,000,000 lines (flow paths) without correct flow direction. I also have 29,000,000 small line segments (parts of the flow paths) with correct flow direction in a separate layer. I want to apply the flow direction from the 29,000,000 to the 1,000,000.
Here is my approach.
Use neighbourfinder set to neighbours to find = find 1 and max distance =0m . This drops my 29,000,000 down to 1,000,000. Now i have 1,000,000 small segments (with correct direction) that lay on top of the 1,000,000 flow paths that have incorrect flow direction . How do i check if my flow path is oriented in the same way as the small segment that lays on it and if not flip it.
I have tried extracting the geometry of the small section before i use the neighbour finder, so the 1,000,000 flow paths now have 2 geoms (original and small section geom), then how do i compare direction of one geom to the other then test is direction A = direction B, if not use orienter to flip.
Maybe The PolylineAnalyzer ?
Maybe the _candidate_angle from the Neighbourfinder ?
Maybe my approach is wrong for a dataset this size ?
Thanks for suggestions
Steve