Beispiel #1
0
        public void DatasetTest_SRTM_GL1()
        {
            DEMDataSet dataset = DEMDataSet.SRTM_GL1;

            _gdalService.Setup(dataset, _rasterService.GetLocalDEMPath(dataset));

            Assert.True(_gdalService.Sources(dataset).Any());
        }
Beispiel #2
0
        public void DatasetTest(string datasetName)
        {
            var datasets = DEMDataSet.RegisteredDatasets;

            Assert.True(datasets.Any(), "No datasets found");


            DEMDataSet dataset = datasets.FirstOrDefault(d => d.Name == datasetName);

            Assert.NotNull(dataset);

            var indexService = this._indexServiceResolver(dataset.DataSource.DataSourceType);

            Assert.NotNull(indexService);
            indexService.Setup(dataset, _rasterService.GetLocalDEMPath(dataset));

            Assert.True(indexService.GetFileSources(dataset).Any());
        }
Beispiel #3
0
 public string GetDEMLocalPath(DEMDataSet dataSet)
 {
     return(_IRasterService.GetLocalDEMPath(dataSet));
 }