title: Algorithm for converting Latitude and Longitude to World Coordinates (OpenGL)
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>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.</p>
  
  <p>EDIT: I have uploaded the code that seems to be most relevant to <a href="http://slexy.org/view/s21LKiD9tj" rel="nofollow noreferrer">http://slexy.org/view/s21LKiD9tj</a>.</p>