Quantcast
Viewing all articles
Browse latest Browse all 12583

Converting GPS Coordinates to screen (don't have any zoom level, just the top left and bottom right coordinates)

Hi all,

 I've got a bit of a mathematical problem, and, honestly I'm a bit rusty regarding algebra (at least I think its a math problem).

 I've got a set of points (geographic coordinates) that are scattered in an area, I know that this area is set between two geographic coordinates (I've got the top left coordinate and the bottom right).

 Now, I need to draw the points in a screen, over an image (I cannot use any map control).

 So, I know that I need to translate or normalize all the point so that my top left geographic coordinate is my 0,0 and the bottom right is my top screen resolution (or, in my case image size).

 One of the use cases that I've got is:

top left: -0.009398461, -0.00504255 -> must be transformed into 0,0 on screen

bottom right: 0.009398461, -0.01281023 -> must be transformed into 1024,768

point to draw: -0.00464558, -0.00799298 -> must be tranformed to ??

Can you guys help me?


Luis Pinho


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>