in reply to convert from latitude and longitude to x-coord and y-coord
There are an infinite number of ways to do that, all geographically inaccurate. What map projection do you prefer? Googling for "map projection" will inform you of some choices and tell you how to calculate them.
Mathematically, it takes two flat charts to cover a sphere.
After Compline,
Zaxo
|
|---|