示例#1
0
        public static IElevationProvider CreateInMemoryFromZipFiles([NotNull] string directory)
        {
            IHgtPathResolver pathResolver = new HgtPathResolverZip(directory);
            IHgtDataLoader   loader       = new HgtDataLoaderFromZip(pathResolver);

            return(new HgtElevationProvider(new HgtDataCellInMemoryFactory(loader))
            {
                Name = "SRTM files",
                Description = string.Format("ZIP packed SRTM files (HGT.ZIP) from directory {0}", directory)
            });
        }
示例#2
0
 public static IElevationProvider CreateInMemoryFromZipFiles([NotNull] string directory)
 {
     IHgtPathResolver pathResolver = new HgtPathResolverZip(directory);
     IHgtDataLoader loader = new HgtDataLoaderFromZip(pathResolver);
     return new HgtElevationProvider(new HgtDataCellInMemoryFactory(loader))
            {
                Name = "SRTM files",
                Description = string.Format("ZIP packed SRTM files (HGT.ZIP) from directory {0}", directory)
            };
 }