Solving an annoying equation please help

  • Thread starter MexWave
  • Start date
  • #1
2
0
[SOLVED] Solving an annoying equation... please help

Hi,

I'm playing with the code used to convert between on-screen pixel co-ordinates and geographical lat-lon in Microsoft's Virtual Earth. They have a page that explains how to go one way (including example code) at http://msdn2.microsoft.com/en-us/library/bb259689.aspx" [Broken] but it only explains how to get the pixel co-ordinate from a lat-lon and not the other way around.

I decided it shouldn't be too difficult to solve myself so I started on it. I'm now stuck at the following point:

a = (1 + sinLatitude) / (1 - sinLatitude)

I need to calculate "sinLatitude" in terms of "a" but I don't seem to be able to do it. Can anyone please give me some pointers, or do I need to approach the whole thing another way?

Many thanks,

Mark
 
Last edited by a moderator:

Answers and Replies

  • #2
EnumaElish
Science Advisor
Homework Helper
2,304
124
Is sinLatitude = (a-1)/(a+1) the answer you are looking for?
 
  • #3
2
0
After running a few tests, it certainly seems to be!

Many thanks for your help!

Mark
 
Last edited:

Related Threads on Solving an annoying equation please help

  • Last Post
2
Replies
26
Views
4K
  • Last Post
Replies
7
Views
2K
Replies
3
Views
2K
Replies
4
Views
2K
Replies
7
Views
5K
  • Last Post
Replies
3
Views
1K
Replies
13
Views
2K
Replies
3
Views
2K
Replies
3
Views
2K
  • Last Post
Replies
6
Views
3K
Top