Solved

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

Posted on 2009-05-10
4
975 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Have you ever thought of installing a power system that generates solar electricity to power your house? Some may say yes, while others may tell me no. But have you noticed that people around you are now considering installing such systems in their …
When there is a disconnect between the intentions of their creator and the recipient, when algorithms go awry, they can have disastrous consequences.
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

695 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