Пример #1
0
        public override void StartDownload()
        {
            Tile.IsDownloadingImage = true;

            Directory.CreateDirectory(Path.GetDirectoryName(m_localFilePath));
            if (m_DapImageStore.Server.MajorVersion >= 11 && m_DapImageStore.DataSet != null && m_DapImageStore.DataSet.Type.Equals("ArcGIS", StringComparison.InvariantCultureIgnoreCase))
            {
                download = new DapTileDownload(m_localFilePath, Tile, m_DapImageStore);
            }
            else
            {
                download = new DapDownload(m_localFilePath, new Geosoft.Dap.Common.BoundingBox(Tile.East, Tile.North, Tile.West, Tile.South), m_DapImageStore);
            }
            download.DownloadType      = DownloadType.Unspecified;
            download.SavedFilePath     = m_localFilePath + ".tmp";
            download.ProgressCallback += new DownloadProgressHandler(UpdateProgress);
            download.CompleteCallback += new WorldWind.Net.DownloadCompleteHandler(DownloadComplete);
            download.BackgroundDownloadMemory();
        }
Пример #2
0
        public override void StartDownload()
        {
            Tile.IsDownloadingImage = true;

            Directory.CreateDirectory(Path.GetDirectoryName(m_localFilePath));
            if (m_DapImageStore.Server.MajorVersion >= 11 &&  m_DapImageStore.DataSet != null && m_DapImageStore.DataSet.Type.Equals("ArcGIS", StringComparison.InvariantCultureIgnoreCase))
             {
            download = new DapTileDownload(m_localFilePath, Tile, m_DapImageStore);
             }
             else
             {
            download = new DapDownload(m_localFilePath, new Geosoft.Dap.Common.BoundingBox(Tile.East, Tile.North, Tile.West, Tile.South), m_DapImageStore);
             }
            download.DownloadType = DownloadType.Unspecified;
            download.SavedFilePath = m_localFilePath + ".tmp";
            download.ProgressCallback += new DownloadProgressHandler(UpdateProgress);
            download.CompleteCallback += new WorldWind.Net.DownloadCompleteHandler(DownloadComplete);
            download.BackgroundDownloadMemory();
        }