Solved

Convert from Latitude and Longitude to X/Y in Mercator Projection

Posted on 2009-05-10
4
964 Views
Last Modified: 2012-05-06
I need code (pseudo code or any C-like language) to convert in Mercator Projection (the one used in Google Maps):
- from geographic latitude/longitude to map X/Y (given the size of the map)
- from map X/Y (given its size) to latitude/longitude
0
Comment
Question by:nrpg666
  • 2
  • 2
4 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 24350441
0
 

Author Comment

by:nrpg666
ID: 24350500
I already tried myself with these formulas. I might be crappy mathematician or it could be of the late hour here, but anyway - I couldn't get them to work. That was the reason to ask for code, not formulas...
0
 
LVL 84

Expert Comment

by:ozo
ID: 24350509
what was the code you tried?
0
 

Author Comment

by:nrpg666
ID: 24350522
The code is OK, the result was [0, pi), I didn't notice that for the time being. I thought something like [0, 1) .
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Graph 2 98
Linear algebra 3 66
Restarting the Universe - A Thought Experiment 19 94
Just learning algebra / need solution explained 4 55
Iteration: Iteration is repetition of a process. A student who goes to school repeats the process of going to school everyday until graduation. We go to grocery store at least once or twice a month to buy products. We repeat this process every mont…
Lithium-ion batteries area cornerstone of today's portable electronic devices, and even though they are relied upon heavily, their chemistry and origin are not of common knowledge. This article is about a device on which every smartphone, laptop, an…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question