Exemplo n.º 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)
            });
        }
Exemplo n.º 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)
            });
        }
Exemplo n.º 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)
            };
 }
Exemplo n.º 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)
            };
 }