File:Latlon to tile.png
Jump to navigation
Jump to search
Size of this preview: 800 × 320 pixels. Other resolutions: 320 × 128 pixels | 640 × 256 pixels.
Original file (1,500 × 600 pixels, file size: 47 KB, MIME type: image/png)
Summary
Formulas to convert latitude and longitude into tile x,y coordinates. Based upon File:Xy_tile.JPG.
\begin{align*} x &= \left\lfloor \frac{lon + 180}{360} \cdot 2^z \right\rfloor \\ \\ y &= \left\lfloor \left( 1 - \frac{ \ln \left( \tan \left( lat \cdot \frac{\pi}{180} \right) + \frac{1}{\cos \left( lat \cdot \frac{\pi}{180} \right)} \right) }{\pi} \right) \cdot 2^{z - 1} \right\rfloor \end{align*}
Licensing
This file has been released into the public domain by the copyright holder, its copyright has expired, or it is ineligible for copyright. This applies worldwide.
Please, please use more specific template such as {{PD-self}} / {{PD-creator}} / {{PD-shape}} / {{PD-USGov}} / {{PD-old}} / {{PD-RU-exempt}} ... This template is not making clear why this work is in the public domain.
Please, please use more specific template such as {{PD-self}} / {{PD-creator}} / {{PD-shape}} / {{PD-USGov}} / {{PD-old}} / {{PD-RU-exempt}} ... This template is not making clear why this work is in the public domain.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 14:03, 9 May 2013 | 1,500 × 600 (47 KB) | SammysHP (talk | contribs) | Formulas to convert latitude and longitude into tile x,y coordinates. Based upon File:Xy_tile.JPG. \begin{align*} x &= \left\lfloor \frac{lon + 180}{360} \cdot 2^z \right\rfloor \\ \\ y &= \left\lfloor \left( ... |
You cannot overwrite this file.
File usage
The following 4 pages use this file: