Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have the following task.

This is my sample data.

WGS84 datum (longitude/latitude):
-123.75 36.59788913307022
-118.125 40.97989806962013

Spherical Mercator (meters):
-13775786.985667605 4383204.9499851465
-13149614.849955441 5009377.085697312

Pixels
2560 6144 2816 6400

Google
x:10, y:24, z:6

TMS
x:10, y:39, z:6

QuadTree
023010

I'm using the code from this source

http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/.

How should I chain the methods in order to get from google tiles (x:10, y:24, z:6) the Sperical Mercator meters

-13775786.985667605 4383204.9499851465
-13149614.849955441 5009377.085697312
?

I have used lots of combinations but I'm getting wrong numbers. Thank you in advance.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.