private void ShowCenterTileInfo() { if (!tiles.ContainsKey(centerTilexy)) { tbTileInfo.Text = "center tile is blank!"; return; } TileMeta centerTile = tiles[centerTilexy]; string result = "X,Y,Z/" + centerTilexy + " TileCount/" + tiles.Count + " LevelRange/" + levelMin + "->" + levelMax; // show utm info int utmx, utmy; double res; centerTilexy.GetUtmXy(out utmx, out utmy, out res); result += "\r\nIf Utm: x,y,zone,res/" + utmx + "," + utmy + "," + centerTile.zone + "," + res + " x1,x2,y1,y2/" + utmx * 400 * res + "," + (utmx + 1) * 400 * res + "," + (utmy + 1) * 400 * res + "," + utmy * 400 * res; // show bing info result += "\r\nIf Bing: QKey/" + BingProjection.GetQuadKey(centerTilexy) + " LatLon/" + BingProjection.TileXYToLatLong(centerTilexy); // show NASA info double lat, lon; centerTilexy.GetNeighbor(0, 1).GetNASALatLon(out lat, out lon); result += "\r\nIf NASA: LeftBot/" + lat.ToString("F6") + "," + lon.ToString("F6"); centerTilexy.GetNeighbor(1, 0).GetNASALatLon(out lat, out lon); result += " RightTop/" + lat.ToString("F6") + "," + lon.ToString("F6"); tbTileInfo.Text = result + "\r\n\r\n"; }
public void VerifyCenterAsBing(PictureBox pbVerify) { string quadKey = BingProjection.GetQuadKey(centerTilexy); string url = "http://ecn.dynamic.t0.tiles.virtualearth.net/comp/ch/" + quadKey + "?mkt=en-us&it=A,G,L&shading=hill&og=4&n=z"; pbVerify.Load(url); Paint(false, true); }