Solved

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

Posted on 2009-05-10
4
968 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Geomentry-Fundamental concepts-Angles 3 85
Smoothing a rectified sine wave DDS 32 120
What is sqrt( (x+b/2a)^2) 35 82
ANOVA 3 45
We are taking giant steps in technological advances in the field of wireless telephony. At just 10 years since the advent of smartphones, it is crucial to examine the benefits and disadvantages that have been report to us.
This article provides a brief introduction to tissue engineering, the process by which organs can be grown artificially. It covers the problems with organ transplants, the tissue engineering process, and the current successes and problems of the tec…
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…
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…

733 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