public RasterService(IGDALVRTFileService gdalVrtService, ILogger <RasterService> logger = null) { _logger = logger; _gdalVrtService = gdalVrtService; //_localDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), APP_NAME); _localDirectory = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), APP_NAME); if (!Directory.Exists(_localDirectory)) { Directory.CreateDirectory(_localDirectory); } _metadataCatalogCache = new Dictionary <string, List <FileMetadata> >(); }
public DatasetTests(DemNetFixture fixture) { _rasterService = fixture.ServiceProvider.GetService <IRasterService>(); _elevationService = fixture.ServiceProvider.GetService <IElevationService>(); _gdalService = fixture.ServiceProvider.GetService <IGDALVRTFileService>(); }