internal DapTileDownload(string imagePath, IGeoSpatialDownloadTile oTile, DAPImageStore imageStore) : base() { m_oTile = oTile; m_oImageStore = imageStore; Url = imageStore.Server.Url; }
internal DapDownload(string imagePath, Geosoft.Dap.Common.BoundingBox hBB, DAPImageStore imageStore) : base() { m_hBB = hBB; m_oImageStore = imageStore; Url = imageStore.Server.Url; }
internal DapDownload(string imagePath, Geosoft.Dap.Common.BoundingBox hBB, DAPImageStore imageStore) : base() { m_hBB = hBB; m_oImageStore = imageStore; Url = imageStore.Server.Url; }
internal DAPDownloadRequest(IGeoSpatialDownloadTile tile, DAPImageStore imageStore, string localFilePath) : base(tile, imageStore, localFilePath, "") { m_DapImageStore = imageStore; }
internal DapTileDownload(string imagePath, IGeoSpatialDownloadTile oTile, DAPImageStore imageStore) : base() { m_oTile = oTile; m_oImageStore = imageStore; Url = imageStore.Server.Url; }
internal DAPDownloadRequest(IGeoSpatialDownloadTile tile, DAPImageStore imageStore, string localFilePath) : base(tile, imageStore, localFilePath, "") { m_DapImageStore = imageStore; }
private QuadTileSet GetQuadTileSet() { if (m_layer == null) { SwitchToUseTiles(); string strCachePath = GetCachePath(); System.IO.Directory.CreateDirectory(strCachePath); // Determine the needed levels (function of tile size and resolution if available) // Shared code in DappleUtils of dapxmlclient try { if (m_iLevels == 0) m_iLevels = DappleUtils.Levels(m_oServer.Command, m_hDataSet); } catch { m_iLevels = 15; } ImageStore[] imageStores = new ImageStore[1]; imageStores[0] = new DAPImageStore(m_hDataSet, m_oServer) { DataDirectory = null, LevelZeroTileSizeDegrees = LevelZeroTileSize, LevelCount = m_iLevels, ImageExtension = ".png", CacheDirectory = strCachePath, TextureSizePixels = m_iTextureSizePixels }; m_layer = new QuadTileSet(m_hDataSet.Title, m_oWorldWindow.CurrentWorld, 0, m_hDataSet.Boundary.MaxY, m_hDataSet.Boundary.MinY, m_hDataSet.Boundary.MinX, m_hDataSet.Boundary.MaxX, true, imageStores) { AlwaysRenderBaseTiles = true, IsOn = m_IsOn, Opacity = m_bOpacity }; } return m_layer; }
private QuadTileSet GetQuadTileSet() { if (m_layer == null) { ImageStore[] imageStores = new ImageStore[1]; imageStores[0] = new DAPImageStore(null, m_oServer); imageStores[0].DataDirectory = null; imageStores[0].LevelZeroTileSizeDegrees = 22.5; imageStores[0].LevelCount = 10; imageStores[0].ImageExtension = ".png"; imageStores[0].CacheDirectory = GetCachePath(); imageStores[0].TextureSizePixels = 256; m_layer = new QuadTileSet(this.Title, m_oWorldWindow.CurrentWorld, 0, m_oServer.ServerExtents.MaxY, m_oServer.ServerExtents.MinY, m_oServer.ServerExtents.MinX, m_oServer.ServerExtents.MaxX, true, imageStores); m_layer.AlwaysRenderBaseTiles = true; m_layer.IsOn = m_IsOn; m_layer.Opacity = m_bOpacity; } return m_layer; }