hungio / route-me

Automatically exported from code.google.com/p/route-me
0 stars 0 forks source link

Drawing a path over the 180 meridian #131

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
-there is no simple solution for drawing a path over the 180 meridian. 
(e.g. draw a line from latitude 179.9 to -179.9) 

What is the expected output? 
-I would expect the line to be the shortest possible:
(abs(latitude1 - latitude2) < 180)

What do you see instead?
-the line is drawn from -179.9 to 179.9 across the entire globe. 

Other thoughts:
-I tried splitting the path in two segments: 
(179.9 to 180.0 and -180.0 to -179.9)
This works OK but the size of the path layer is too big (its width is
practically 360 degrees (-180 to 180)) and it cannot be allocated.

I don't see a simple solution to this problem. I just wanted to bring it to
your attention. I also hope my explanation of the problem is clear enough.
Please let me know if I can be of any further assistance.

Thank you,
Andrei

Original issue reported on code.google.com by andrei.g...@gmail.com on 11 Feb 2010 at 9:48