I have a set of latitude and longitude co-ordinates which are to be rendered in a GL program I'm working on. I have information such as the number of units per latitude and longitude degree (I have the co-ordinates in decimal degrees, eg, 27.1234) - for example, 15 units per longitude, and 10 units per latitude. However, I've had problems with rendering.
This calculation gives me locations I can use for rendering, but it's not perfect. I initially tested only with co-ordinates such as S026.33.01.806 E148.46.27.009, and when I switched to co-ordinates such as N039.52.19.030 W075.14.28.107 the rendering ended up upside-down and horizontally flipped.
It may be a fundamental lack of understanding of OpenGL and how it interprets co-ordinates, or perhaps I'm approaching the problem the wrong way. I'm using Python and PyOpenGL, but I presume this algorithm is something that can be done without a specific language requirement.
EDIT: I have uploaded the code that seems to be most relevant to http://slexy.org/view/s21LKiD9tj.