I have seabird tracking data from the South Pacific with several of the animals crossing the international date line during their travels. When I try to generate a polyline from the corresponding XY data, the resulting line is warped around the globe when two consecutive positions are on either side of the date line, i.e. rather than connecting the points along the shorted distance (which means crossing the date line), the tool draws the line across the entire map.
At first I though this was because the original data was in WGS1984 lat/lon data, so that latitudes range from -180 to +180 degrees, which explains the odd line drawing behaviour. However, converting the data to a projected format (e.g. Web Mercator) does not solve this issue.
Googling this issue shows that this has been an issue for a long time, but does not produce any satisfying solution. Any suggestions how to get something this basic done?