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