I have a bunch of GPS coodinates that I wish to plot on a form. I am happy using Graphics.DrawPolygon and I know what my boundary coordinate are, but cant figure out how to get decimal GPS coordinates, ie -36.542331, 146.070729 into screen points.
As an example I have a form that is 600x600 and I have the following points:
-16.218623, 133.254643
-24.408292, 122.024998
-31.245193, 132.432890
-25.562616, 142.772956
Which should roughly speaking form a diamond (over central Australia Image may be NSFW.
Clik here to view.).
I know that:
- -16.218623 is my highest point (or a Y of 0)
- 122.024998 is my left most point (or X of 0)
- -25.562616 is my lowest point (or technically a Y of 600)
- 142.772956 is my fartest point right (or technically an X of 600)
I figure there is something about subtractiing the leftmost from the rightmost points (20.747958) but then I have to figure out a "factor" so that 20.747958 fits into 600 nicely with reasonable resolution.
Any help appreciated.
Cheers
Andrew