Assume a latitude, longitude order for Polyline format

Fixes #2901
this sounds a bit like the whole class only supports two-dimensional data, which is not true. you could consider moving that part of the comment to the relevant functions instead.