示例#1
0
        public static IElevationProvider CreateDirectDiskAccessFromRawFiles([NotNull] string directory)
        {
            IHgtPathResolver pathResolver = new HgtPathResolverRaw(directory);

            return(new HgtElevationProvider(new HgtDataCellInFileFactory(pathResolver))
            {
                Name = "SRTM files",
                Description = string.Format("Memory mapped SRTM files (HGT) from directory {0}", directory)
            });
        }
示例#2
0
        public static IElevationProvider CreateInMemoryFromRawFiles([NotNull] string directory)
        {
            IHgtPathResolver pathResolver = new HgtPathResolverRaw(directory);
            IHgtDataLoader   loader       = new HgtDataLoaderFromRaw(pathResolver);

            return(new HgtElevationProvider(new HgtDataCellInMemoryFactory(loader))
            {
                Name = "SRTM files",
                Description = string.Format("Unpacked SRTM files (HGT) from directory {0}", directory)
            });
        }
示例#3
0
 public static IElevationProvider CreateDirectDiskAccessFromRawFiles([NotNull] string directory)
 {
     IHgtPathResolver pathResolver = new HgtPathResolverRaw(directory);
     return new HgtElevationProvider(new HgtDataCellInFileFactory(pathResolver))
            {
                Name = "SRTM files",
                Description = string.Format("Memory mapped SRTM files (HGT) from directory {0}", directory)
            };
 }
示例#4
0
 public static IElevationProvider CreateInMemoryFromRawFiles([NotNull] string directory)
 {
     IHgtPathResolver pathResolver = new HgtPathResolverRaw(directory);
     IHgtDataLoader loader = new HgtDataLoaderFromRaw(pathResolver);
     return new HgtElevationProvider(new HgtDataCellInMemoryFactory(loader))
            {
                Name = "SRTM files",
                Description = string.Format("Unpacked SRTM files (HGT) from directory {0}", directory)
            };
 }