示例#1
0
        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> >();
        }
示例#2
0
 public DatasetTests(DemNetFixture fixture)
 {
     _rasterService    = fixture.ServiceProvider.GetService <IRasterService>();
     _elevationService = fixture.ServiceProvider.GetService <IElevationService>();
     _gdalService      = fixture.ServiceProvider.GetService <IGDALVRTFileService>();
 }