title: Convert Lat/Longs to X/Y Co-ordinates
body: <p>I have the Lat/Long value of an small area in Melbourne; -37.803134,145.132377 and also a flat image of that,that I exported from openstreet map( Osmarender Image ).
  Image width : 1018 and Height:916</p>
  
  <p>I would like to be able to convert, using C++, the Lat/Long to an X,Y coordinate where the point would reflect the location.</p>
  
  <p>I used various formula's that I found in web like one given below but nothing helps.</p>
  
  <pre><code>var y = ((-1 * lat) + 90) * (MAP_HEIGHT / 180);
  var x = (lon + 180) * (MAP_WIDTH / 360);
  </code></pre>
  
  <p>It would be of great help if  any one give me clear explanation of how to do this . Any code would be much appreciated.</p>