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) }); }
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) }); }
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) }; }
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) }; }