You are not logged in.
Pages: 1
I am writing a program that takes peoples IP addresses and converts it to their geographical location.
I was able to write an engine that converts the IP to Latitude and Longitude.
Now I want to display this on a small image map (show below).
The problem is that I do not know how to convert the Latitude and Longitude to X,Y cords on the map.
Just to further complicate things, in computers X,Y is different.
Although you would expect (0,0) to be in the center of the image, it is accualy in the upper right hand corner of the image.
Each interager represents 1 pixel. And everthing in the third section is positive.
I hope I explained that well. If not here is a formula(s):
New X = (-1 * OldX) - (ImageWidth / 2)
New Y = (-1 * OldY) - (ImageHeight / 2)
Thanks!:D
Twitter: http://twitter.com/AlecBeta
Blog: http://AlecBeta.us.to
Offline
There is something in topology called Reimannian manifolds which are manifolds that allow you to measure distances and angles:
http://en.wikipedia.org/wiki/Riemannian_manifolds
or take a look at manifolds in general:
http://en.wikipedia.org/wiki/Manifold
Offline
Pages: 1