This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Conversion routines for Google, TMS, and Microsoft Quadtree tile representations, derived from | |
/// http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/ | |
/// </summary> | |
public class WebMercator | |
{ | |
private const int TileSize = 256; | |
private const int EarthRadius = 6378137; | |
private const double InitialResolution = 2 * Math.PI * EarthRadius / TileSize; | |
private const double OriginShift = 2 * Math.PI * EarthRadius / 2; |