this is a general programming question but i'm using java so i'm posting it here...
i am trying to map geographical coordinates in a plane. given are 2 geographical points (latitude longitude), the width and height of the svg in pixels and a third geographical point. given the values, i would like to know what will be the coordinates of the third geographical point in the svg... i am having trouble finding a right formula for this one.. what i did is i subtract lat1 from lat2 and given the difference, i divided it with the width of the svg file. i am thinking that this will give me
n decimal per pixel... to be able to map the third geographical point in the svg, i subtracted
lat1 from the latitude of the third point and divided it with the
n decimal per pixel... i think that my math is right but apparently it's not.. please correct me because the coordinates is way off..

thanks..
please help me!!!