i built a workflow that will draw a flight path between two airports, its working well, but if the flight path goes off the edge of the map, then alteryx draws a horizontal line across the entire planet, and continues the rest of the curve on the other side of the map.
is there any way i can remove that horizontal line connecting the two halves of the curve?
Solved! Go to Solution.
Got it.. I needed to split the line into two lines where the longitude flips from positive to negative. This has a side effect of reducing the flight distance by the length between two points on the line, but I can go back and grab that flight distance before i split the line in two.
Hi @Matthew
I don't think there's a built-in feature to do that. You'll probably have to split your poly-line in two, with one part for the eastern segment and the other for the western segment. Basically split where your longitude changes sign.
Edit: What you said with the split triggered on the lng instead of lat. You can fly from Australia to Chile without crossing the equator.
Dan
yeah i just figured that out, thank you for confirming. it had a side effect of ruining my distance calculation because a segment of the line is missing between two points (where i split the line into two lines), but i can calculate the distance separately
also, can you tell me how to mention people in comments? i can never get that feature to work