Esempio n. 1
0
        /// <summary>
        /// Gets the missing cell.
        /// </summary>
        public static bool GetMissingCell(string path, string name)
        {
            var filename = name + ".hgt.zip";
            var local    = System.IO.Path.Combine(path, filename);

            Log($"Downloading {name} ...");
            foreach (var continent in CONTINENTS)
            {
                if (SourceHelpers.Download(local, SOURCE + continent + "/" + filename))
                {
                    return(true);
                }
            }
            return(false);
        }
Esempio n. 2
0
        /// <summary>
        /// Gets the missing cell.
        /// </summary>
        public static bool GetMissingCell(string path, string name)
        {
            var filename = name + ".hgt.zip";
            var local    = System.IO.Path.Combine(path, filename);

            var Logger = LogProvider.For <SRTMData>();

            Logger.Info("Downloading {0} ...", name);
            foreach (var continent in CONTINENTS)
            {
                if (SourceHelpers.Download(local, SOURCE + continent + "/" + filename))
                {
                    return(true);
                }
            }
            return(false);
        }